I have a scheduling app which just saves day and hour for alarm/notification.
The day I save in string, and the hour (Time: hh:mm:ss) I saved in Date with dummy (yyyy/MM/hh).
I can find the schedule with filter day (equalTo.("day","Sunday")), but for the time, I can't compare current time with my date to get next schedule greaterThan current time in database which have dummy (yyyy/MM/hh).
Should I save my day and time in Date with find next date which is equal date? Example — I save with this : day in my data is Sunday, and current date is Fri, 28-apr-2017. This means I save data is Sun, 30-apr-2017 hh:mm:ss. But how to getDate while I only have day and time?