Fix date formet in API