Skip to content

qie.deduceDate

Signature: qie.deduceDate(value, format*)

Returns: Date parsedDate - the date value of the string value

Convert the string value to a date. This function can accept virtually any date format.

Note

The output date object will be in the timezone of the QIE server. If the value has a timezone specified, it will be converted correctly to the QIE server timezone.

Parameters

Type Name Description Default
String value the value to be converted to a date
String format* (optional) the format to use for deducing the date null

Example

var deducedDate = qie.deduceDate("Mar 4 1962");
/* OR */
deducedDate = qie.deduceDate("Mar 14 1962", "MMM d yyyy");