githubEdit

datetime

Datetime Methods

chevron-rightlsWeek(locale=[string], timezone=[string])hashtag

Provides the Localized BIF and member functions for time units ( e.g.

different locales have different start days to the week )

Arguments:

Argument
Type
Required
Default

locale

string

false

null

timezone

string

false

null

chevron-rightlsDayOfWeek(locale=[string], timezone=[string])hashtag

Provides the Localized BIF and member functions for time units ( e.g.

different locales have different start days to the week )

Arguments:

Argument
Type
Required
Default

locale

string

false

null

timezone

string

false

null

chevron-rightcompare(date2=[any], datepart=[string])hashtag

nullArguments:

Argument
Type
Required
Default

date2

any

true

null

datepart

string

false

null

chevron-rightcompareTo(date2=[any], datepart=[string])hashtag

nullArguments:

Argument
Type
Required
Default

date2

any

true

null

datepart

string

false

null

chevron-rightlSDateTimeFormat(mask=[string], locale=[string], timezone=[string])hashtag

Formats a date in a locale-specific format

Arguments:

Argument
Type
Required
Default

mask

string

false

null

locale

string

false

null

timezone

string

false

null

chevron-rightlSDateFormat(mask=[string], locale=[string], timezone=[string])hashtag

Formats a date in a locale-specific format

Arguments:

Argument
Type
Required
Default

mask

string

false

null

locale

string

false

null

timezone

string

false

null

chevron-rightlSTimeFormat(mask=[string], locale=[string], timezone=[string])hashtag

Formats a date in a locale-specific format

Arguments:

Argument
Type
Required
Default

mask

string

false

null

locale

string

false

null

timezone

string

false

null

chevron-righttoLegacyDate()hashtag

Takes a BoxLang DateTime object and converts it to the legacy java.util.Date object used by ACF and Lucee.

chevron-rightequals(date2=[any])hashtag

Provides an overload to the native equals method for comparing two date/time values

This method providers a looser comparison than the native equals method, which also adds timezone comparison, in addition to the instant

Arguments:

Argument
Type
Required
Default

date2

any

true

null

chevron-rightformat(mask=[string], timezone=[string], locale=[string])hashtag

Formats a datetime, date or time

Arguments:

Argument
Type
Required
Default

mask

string

false

null

timezone

string

false

null

locale

string

false

null

chevron-rightdateFormat(mask=[string], timezone=[string], locale=[string])hashtag

Formats a datetime, date or time

Arguments:

Argument
Type
Required
Default

mask

string

false

null

timezone

string

false

null

locale

string

false

null

chevron-righttimeFormat(mask=[string], timezone=[string], locale=[string])hashtag

Formats a datetime, date or time

Arguments:

Argument
Type
Required
Default

mask

string

false

null

timezone

string

false

null

locale

string

false

null

chevron-rightdateTimeFormat(mask=[string], timezone=[string], locale=[string])hashtag

Formats a datetime, date or time

Arguments:

Argument
Type
Required
Default

mask

string

false

null

timezone

string

false

null

locale

string

false

null

chevron-righthash(algorithm=[string], encoding=[string], numIterations=[integer])hashtag

Creates an algorithmic hash of an object and returns it in the CFML compat upper case format

Arguments:

Argument
Type
Required
Default

algorithm

string

false

MD5

encoding

string

false

utf-8

numIterations

integer

false

1

Examples

Last updated

Was this helpful?