get dates API working and reaching app