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
Post a Comment