In order to convert string value to date,use valueOf().
For Example
String datevalue = '1/2/2014';
Date d = Date.valueOf(datevalue );
For Example
String datevalue = '1/2/2014';
Date d = Date.valueOf(datevalue );
A blog containing Salesforce coding examples in detail.It's a place where you can find solutions to the problems that you may face in your daily salesforce coding. Apex classes,visual force page,we services,Integration,plugins,extensions,Lightning web components,Aura components,Email Messages,Sales cloud,service Cloud,Marketing Cloud. Amazon Affliate Link: https://amzn.to/43zNb70
No comments:
Post a Comment