DatePart()

Extracts the given date part from the date object

Usage

NUMERIC = DatePart( datepart, date )
Argument Summary
datepart date part ('yyyy' year, 'q' quarter, 'm' month, 'y' day of year, 'd' days, 'w' week day, 'ww' week of year, 'h' hours, 'n' minutes, 's' seconds, 'l' milliseconds)
date date

Calling

Supports named-parameter calling allowing you to use the function like:

DatePart(
   datepart=?, 
   date=?
);

Supports passing parameters as a structure using ArgumentCollection:

DatePart( ArgumentCollection={
   datepart : ?, 
   date : ?
} );