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.

function : Parse(date_str:String, format:String, gmt:Bool) ~ Date
Parameters
NameTypeDescription
date_strStringdate
formatStringdate string format

options:

  • month=MM
  • day=dd
  • year=yy(yy)
  • hour=hh
  • minutes=mm
  • seconds=ss

    gmtBooltrue is GMT, false otherwise

    Return
    TypeDescription
    DateDate instance