The parseDate function returns a date object after parsing the specified string in the required format.
Syntax
dtDate = parseDate(dateStr, format)
Arguments
Specifies the string that needs to be parsed as a date.
Specifies the format required to interpret the date string provided; for example: MM/dd/yyyy.
Return Value
Date equivalent of input dateStr String as parsed using the input format String.
Examples
dtDate = parseDate('12/10/2009','MM/dd/yyyy')
dtDate = parseDate('12/10/2009','dd/MM/yyyy')
dtDate = parseDate('12-10-/2009','dd/MM/yyyy')
|
Copyright © 2014 CA.
All rights reserved.
|
|