Play Games

Search This Blog

Wednesday, July 9, 2014

Convert string to date in apex

In order to convert  string value to date,use valueOf().

For Example

String datevalue = '1/2/2014';
Date d = Date.valueOf(datevalue );

No comments:

Post a Comment