Login    Forum    Search    FAQ   Blog

Board index » Server Side Development » ASP 3.0




 Page 1 of 1 [ 5 posts ] 



Author Message
 Post subject: How 2 change the Date Format
 Post Posted: Sun Nov 22, 2009 10:05 pm 
Offline

Joined: Sat Feb 21, 2009 2:16 pm
Posts: 41
Hello!!! there


I m gettin the Date Field like dis throu web service
"23/12/2009 00:00:00"


How 2 change dis like " Wed, 23 Dec 09 " usin the C#.


Thank u so much in Advance


Top 
 Post subject: Re: How 2 change the Date Format
 Post Posted: Sun Nov 22, 2009 10:06 pm 
Offline

Joined: Sat Feb 21, 2009 11:06 am
Posts: 1794
Hi,

try this:

Code:
String.Format("0:ddd, d  MMM yy",dt);

http://www.csharp-examples.net/string-format-datetime/



good luck


Top 
 Post subject: Re: How 2 change the Date Format
 Post Posted: Sun Nov 22, 2009 10:06 pm 
Offline

Joined: Sat Feb 21, 2009 1:08 pm
Posts: 549
You could use date.ToString("ddd, dd MMM yy"); For more details, you can check:

http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx


Top 
 Post subject: Re: How 2 change the Date Format
 Post Posted: Sun Nov 22, 2009 10:06 pm 
Offline

Joined: Sat Feb 21, 2009 2:15 pm
Posts: 62
Code:
use date.ToString("ddd, dd MMM yy")

_________________
The average woman would rather have beauty than brains, because the average man can see better than he can think.


Top 
 Post subject: Re: How 2 change the Date Format
 Post Posted: Sun Nov 22, 2009 10:07 pm 
Offline

Joined: Sat Feb 21, 2009 2:16 pm
Posts: 41
thans


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 5 posts ] 




Board index » Server Side Development » ASP 3.0


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron