You need to sign in to do that
Don't have an account?
![Anupama@28 Anupama@28](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
User local date format
Hi,
Is there any built in method in apex to convert a random date to user local date format?
or
is there any built in method in apex to get the date format of the user local.
for Ex : UserInfo.getLocale(); gives the user local, same way any built method to get the date format like dd/mm/yy etc..
I got the solution....
Ex: String dateString = '2013-09-23T07:54:15.000Z';
DateTime myDate = date.valueOf(dateString);
String formattedDate = myDate.format();
return formattedDate ;