I have an object with 2 String
properties: notifyFrom
and notifyTo
.
They are like:
notifyFrom
: 14:00
notifyTo
: 18:00
and before I send the user a notification (that's part of my app) I want to check if the time is between those hours and just if it is to send the notification.
Note: Date doesn't matter here. I just want to check the times
What is the best way to do it?
Thanks!