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

ArgumentTypeRequiredDescriptionDefault

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

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC