SIMPOL Documentation

string2date()

Description

This function evaluates the date string passed in t using the format string passed in format and uses the centurybase information from the locale information if the year is provided as a 2-digit year. The locale information will also be used if the format string indicates the month is not provided as digits. From all of that an attempt will be made to determine the date provided and assign it to a new date object, which is then returned. The return value will normally be the date that corresponds to the values passed. If problems occur parsing the date, then an incorrect date or even a non-initialized (.nul) date object may be returned.

Prototype

string2date ( string t, string format, SBLlocaledateinfo datelocale, integer error )

Parameters

ParameterDefault valueType nameDescription
tNonestring
formatNonestring
datelocaleNoneSBLlocaledateinfo
errorNoneinteger