You need to sign in to do that
Don't have an account?
sangeeta.marathe@Futurewise.co
Insert Date Values
How to insert valuse of Date datatype in Database ?
I used all the things 'YYYY-MM-DD' , 'DD-MM-YYYY' , DD-MM-YYYY
General error is :
Illegal conversion from String to Date or Integer to Date...
Please help me by query that How will I insert the values....
You can convert from string to datetime in the following manner:
String s = '2011-01-31 00:00:00';
DataTime dt = datetime.valueof(s);