Skip to content

Latest commit

 

History

History
76 lines (63 loc) · 2.81 KB

File metadata and controls

76 lines (63 loc) · 2.81 KB

Function: CreateDate

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.

Method Signature

CreateDate(year=[integer], month=[integer], day=[integer], hour=[integer], minute=[integer], second=[integer], millisecond=[integer], timezone=[string])

Arguments

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

Examples

Related