datetime

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

DaveP,

What do you mean you want to capture midnight? Do you want to get the
DateTime that corresponds to midnight of a current date? If so you can just
use call the Date property to get the DateTime instance which correponds to
midnight of that date.

You can also call the TimeOfDay property to get the TimeSpan that only
has the time component, which you can then convert to a number of seconds.
 
Hi Dave,

The simplest way is to do with a timer control ticking each minute and
to wait for 00:00.
 
how to capture midnite
i want to create log files based on change of day
i was thinking seconds past midnite...

tks DaveP
 
Martin,

I tell it always in another way: I will forever calculate the time that to
go to the 00:00 and set that as the timer time to go minus let say 10%
(because the computer can be busy at the time of the event).

Cor
 
Back
Top