Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can we get date with time in our web appilication
Posted

DateTime.Now;

or read this

Date Time[^]
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 27-Mar-12 20:10pm    
Correct, a 5. More exactly, System.DateTime.Now or UtcNow.
--SA
Bojjaiah 28-Mar-12 5:21am    
thank you :)
Hi,

If you want to get the current date and time, you can use below code

DateTime.Now.ToString();
 
Share this answer
 
Comments
araveendrareddy 27-Mar-12 5:11am    
thank you ahmed
Ahamed Azeem 27-Mar-12 5:19am    
Kindly accept the solution and rate it

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