I am trying programmatically check if the current time for my web application is between two predefined times. I don't know how to get the current time and then set variables that store two predefined times. The pseudo code would look like this
if(currentTime < shiftStart && currentTime <shiftEnd)
{
shift = 2
}
But how do I declare and setup the variables so the code works correctly.