i think once saw stackoverflow post before, can't seem find anymore, i'll ask again. have opening time , closing time. want check whether store open or not, when closing time on next day can't seem figure out working solution that.
i don't suppose can't say:
currenttime > starttime && currenttime < endtime because example currenttime = 19:00 , starttime = 18:00 , endtime = 03:00
if used if statement mentioned above, currenttime bigger end time make code think store closed when in fact store still open. know how can solve this?
a solution preferred in either javascript, angular or php
Comments
Post a Comment