How to display datetime using region based and datetime insert in utc ?

Posted by Vinoths09 under ASP.NET MVC on 8/29/2015 | Points: 10 | Views : 334 | Status : [Member] | Replies : 1
Anyone give me idea for datetime localization display datetime based on region/country




Responses

Posted by: Rajnilari2015 on: 10/6/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
0
Down
Try

public static string LocalizedDateTime(String langCulture) {

return DateTime
.MinValue
.ToString("d",new CultureInfo(langCulture));
}


--
Thanks & Regards,
RNA Team

Vinoths09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response