Creates a date-time object.
Note that the core implementation of this BIF differs from ACF/Lucee in handling of a year value without a century. BoxLang respects that pre-first century years are valid and and will treat createDate( 20 )
as 20 AD.
The behavior modification to emulate ACF/Lucee would require the installation of the bx-compat
module.
CreateDate(year=[integer], month=[integer], day=[integer], hour=[integer], minute=[integer], second=[integer], millisecond=[integer], timezone=[string])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
year |
integer |
false |
The year of the date-time object. | 0 |
month |
integer |
false |
The month of the date-time object. | 1 |
day |
integer |
false |
The day of the date-time object. | 1 |
hour |
integer |
false |
The hour of the date-time object. | 0 |
minute |
integer |
false |
The minute of the date-time object. | 0 |
second |
integer |
false |
The second of the date-time object. | 0 |
millisecond |
integer |
false |
0 |
|
timezone |
string |
false |
- ClearTimezone
- CreateDateTime
- CreateODBCDate
- CreateODBCDateTime
- CreateODBCTime
- CreateTimeSpan
- DateAdd
- DateCompare
- DateConvert
- DateDiff
- DateFormat
- DatePart
- DateTimeFormat
- Day
- DayOfWeek
- DayOfWeekAsString
- DayOfWeekShortAsString
- DayOfYear
- DaysInMonth
- DaysInYear
- FirstDayOfMonth
- GetNumericDate
- GetTime
- GetTimezone
- GetTimezoneInfo
- Hour
- Millisecond
- Minute
- Month
- MonthAsString
- MonthShortAsString
- Nanosecond
- Now
- Offset
- ParseDateTime
- Quarter
- Second
- SetTimezone
- TimeFormat
- Week
- Year