My string format : 10/11/2016 01:00 AM
I want to convert this String to DateTime to support in every user's locale format
I tried Date.parse, Date.valueOf but am not getting expected value.
Any help is appreciable thanks!.
My string format : 10/11/2016 01:00 AM
I want to convert this String to DateTime to support in every user's locale format
I tried Date.parse, Date.valueOf but am not getting expected value.
Any help is appreciable thanks!.
Best Answer
You can format with
userinfo.getTimeZone();
Updates
Try below code snippet to convert the string to DateTime.