I can manually change this each time I start the day but would like to have this done each day when I start NT.
Does anyone know of the correct way to reference this and set the start date/time so that it updates each day?
The set time code is below:
#region Variables
private string startString = @"8:30"; // Default setting for Time
private DateTime startTime;
#endregion
protected override void OnStartUp()
{
/* interpret the start time */
if(DateTime.TryParse(startString, out startTime))
{
startString = startTime.ToString();
}
else
{
startString = DateTime.Now.ToString();
}
}

Comment