All Bundles
DateUtility
Utilities for handling dates.
Operations
Format
Formats date into a string
function : Format(date:Date, format:String, gmt:Bool) ~ String
Parameters
Name | Type | Description |
---|
date | Date | date |
format | String | date string format |
gmt | Bool | true is GMT, false otherwise |
Return
Type | Description |
---|
String | Date 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
Name | Type | Description |
---|
date_str | String | date |
format | String | date string format |
gmt | Bool | true is GMT, false otherwise |
Return
Type | Description |
---|
Date | Date instance |