i need to compare two times. First time from database and second time is current time. When current time = time from database then fire event. I tried this code but it doesn