Description:
In
this example we explain that how to convert date from thu jun 09 2011 00:00:00
gmt+0530 (india standard time) to yyyy-mm-dd in C#. we already explain that how
to convert date from thu jun 09 2011
00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd in javascript.
Here
we explain that how to convert date from thu jun 09 2011 00:00:00 gmt+0530
(india standard time) to yyyy-mm-dd using Code behind C# in asp.net. or how to
convert kendo datepicker date into dd-mm-yyyy in C# code behind.
Code:
var
datestring = "Thu Jun 09 2011 00:00:00 GMT+0530 (India Standard
Time)";
var
date = DateTime.Parse(new string(datestring.Take(24).ToArray()));
date.ToString("dd/MM/yyyy");
thanks. also keep visiting updated post on blog.
ReplyDelete