I want to construct an API in which, current time will be taken(ie 7:30 p.m.) and it will be compared with starting time(i.e. 6:00 a.m) and closing time (i.e 8:00 p.m.). If the time falls between these two limits, positive response will be given in the output.
Is there any Date function through which I can do this. If not what is the effective method to check hours and minutes to compare these limits?
via M thaker
No comments:
Post a Comment