0

I have the following date

2013-01-30T07:38:44.268Z

and I need to convert it to a datetime object. can you explain how?

1 Answer 1

1

you can put the date into a sting and do the following

String dateStr = '2013-01-30t07:38:44.268z';
dateTime xx = dateTime.valueOf(dateStr .replace('t',' '));

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .