I have the following date


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


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',' '));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.