Returns date part of of inputDateTime. The intervalType is a string specification of the date part that should extracted:
DatePart( intervalType, inputDateTime ) DatePart( intervalType, inputDateTime, firstDayOfWeek ) DatePart( intervalType, inputDateTime, firstDayOfWeek, firstWeekOfYear )
| intervalType | String specification of the date part that should extracted |
|---|---|
| inputDateTime | DateTime that date part will be returned |
| firstDayOfWeek | Defines the first day of week, see: First Day of Week constants. |
| firstWeekOfYear | Defines the first week of the year, see: First Week of Year constants. |
Number value