Problem in date convertion

Posted by Pcjoshi under ASP.NET on 8/27/2012 | Points: 10 | Views : 833 | Status : [Member] | Replies : 2
hello,
how can i use date format like this Mon, 08 Nov 2010 15:39:46 AM/PM. please provide me correct solution .




Responses

Posted by: Ranjeet_8 on: 8/27/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Try this

Label1.Text = DateTime.Now.ToString("ddd, dd MMM yyyy hh:mm:ss tt");


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

Posted by: Vuyiswamb on: 8/28/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Day @Gopesh9

The Asnwer you posted is not correct , the person asked for this

Mon, 08 Nov 2010 15:39:46 AM/PM


and you provided this

August 28,2012


can you see that the format is not the same, please make sure that before you post you only post the correct answer


Thank you for posting at Dotnetfunda
[Administrator]

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

Login to post response