All Bundles

DateUtility

Utilities for handling dates.

Operations

Format

Formats date into a string

function : Format(date:Date, format:String, gmt:Bool) ~ String
Parameters
NameTypeDescription
dateDatedate
formatStringdate string format
gmtBooltrue is GMT, false otherwise

Return
TypeDescription
StringDate instance

Parse

Parses a date from a String. Format MM: month, dd: day, yy(yy): year, hh: hour, mm: minutes and ss: seconds.

function : Parse(date_str:String, format:String, gmt:Bool) ~ Date
Parameters
NameTypeDescription
date_strStringdate
formatStringdate string format
gmtBooltrue is GMT, false otherwise

Return
TypeDescription
DateDate instance