This function is used to convert the specified string to a date value. There is 2 parameters in this function :
- _text : The string to convert to a date value.
- _sequence : A three digit integer that describes the positions of the day, month, and year in the string to convert (day = 1, month = 2, year = 3). For example, if we want to use year, month, day, we must write 321.
Example :
static void str2DateExample(Args _arg) { date d; ; d = str2Date("22/2/2017", 123); info(strfmt("%1", d)); }