c# - How do you get the current time of day in datetime format? -


how current time of day in datetime format?

you can use datetime.timeofday:

timespan currenttime = datetime.now.timeofday; 

this retrieve timespan. if want in "datetime" format, use datetime.now (realizing, of course, includes date).


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -