[Date->Parse] compares a string parameter against a date format. Returns True if the string parameter is in the proper date format or otherwise False.
An optional -Format parameter specifies the format against which to compare the string. Defaults to '%Q %T'.
An optional -Locale parameter specifies the locale against which to compare the string. Defaults to the operating system default locale.
Date Object->parse('String Parameter')
Date Object->parse('String Parameter', -format='Format String')
Date Object->parse('String Parameter', -locale='Locale String')
Use the [Date->Parse] method. The following examples test whether a string parameter is in the given date format.
Code
date('2011-02-19 16:33:48')->parse('2011-02-01')
date('2011-02-19 16:33:48')->parse('20110201012345', -format='%q')
Result
false true
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments