"ToTime(Time[0]) >= 170000" this meant "if actual time is later than 5.00pm then...."
I imagine that it should be easy as well in NT8 but I can't find any quick sample, so I've had to code a little procedure, here below:
variables
private TimeSpan start;
private TimeSpan end;
private TimeSpan now;
Initialize
start = new TimeSpan(17, 0, 10);
end = new TimeSpan(17, 14, 55);
now = DateTime.Now.TimeOfDay;
Code
if ((now > start) && (now < end))
{
// Reset some variables
}
But is it another simpler way to call time of day in NT8 ?
Thanks in advance
Comment