Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get todays date in asp.net
Posted
Updated 7-Feb-12 23:57pm
v2
Comments
Herman<T>.Instance 8-Feb-12 5:58am    
you mean DateTime.Now.ToShortDateString(); ?
Beula Joyce 8-Feb-12 6:01am    
DateTime.Now.Date.ToShortDateString()

Try DateTime todayDate = DateTime.Now;
 
Share this answer
 
v2
Comments
Tech Code Freak 8-Feb-12 8:42am    
5up!
Abhinav S 8-Feb-12 9:00am    
Thank you.
DateTime.Now
DateTime.UtcNow
DateTime.Today
 
Share this answer
 
Comments
Tech Code Freak 8-Feb-12 8:42am    
5up!
Espen Harlinn 8-Feb-12 9:23am    
5'ed!
DateTime.Now.Date.ToShortDateString()
 
Share this answer
 
Comments
Tech Code Freak 8-Feb-12 8:42am    
5up!
Response.write(DateTime.Now);
Response.write(DateTime.Now.ToShortString);
 
Share this answer
 
Comments
Tech Code Freak 8-Feb-12 8:42am    
5up!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900