Date() and time()
How can be use date() and time() in asp.net?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jan 25, 2012, 2:25 AM
In .net DateTime has property for getting Date.
DateTime t = DateTime.Now;
var date = t.Date;
var time = t.TimeOfDay;
hope this help.
VulpesPosted Jan 24, 2012, 9:51 AM
Anuja PawarPosted Jan 24, 2012, 5:56 AM
A date and time format string defines the text representation of a DateTime
Refer this for more information on datatime
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
Posted Jan 23, 2012, 2:43 AM
Chetan koralliPosted Jan 23, 2012, 12:23 AM