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.
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.