Excerpt | ||
---|---|---|
| ||
toDate(dateString) Converts a date in text into an actual date type. |
Function: toDate()
Converts a standard PhixFlow date string (e.g. 20120521 or 20120521.172108) into a true date, or a non-standard date string into a true date if supplied with a format pattern.
...
Returns null if dateString is null.
Note | ||
---|---|---|
Beware of daylight savings clock changes! In countries where daylight savings are applied, at the point of the year when the clocks go forward, a hour will be lost. If you have a date and time that happen to fall into this missing hour, when you run a toDate() on the value, you will get an error like
|
Syntax
toDate(dateString)
toDate(dateString, formatString)
...