Development tools : Global functions : Date category : parseDate
  
parseDate
Description
Returns Date type value of given 'date'. The date should be in the format of 'yyyy-MM-dd'.
Usage
Client side: Y
Server side: Y
Syntax
Date parseDate(String date)
Argument
date
The string to be converted to date. The argument need to be string in format of 'yyyy-MM-dd'.
Return
Returns date type data represented by 'date'.
Exception
ParseException
For server side execution, if the date is not in the format of 'yyyy-MM-dd' will cause ParseException thrown. For example, parse("2011/12/20") will cause the exception.
Example
parseDate("2011-12-20")
returns the date type data.
Go up to
Date category