extract date in proper format, need to pass the date to alarm function to check and see if alarm is active