Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"react native pushnotificationIOS "scheduleLocalNotification" firedate object format

Does anyone know the date and time format for the "fireDate" object of the "PushNotificationIOS" method "scheduleLocalNotification"

thanks in advance

like image 451
wiserlake Avatar asked Mar 14 '23 03:03

wiserlake


1 Answers

I got the following error message when sending a wrong string to fireDate:

Expected format: YYYY-MM-DD'T'HH:mm:ss.sssZ

If no other format works I suggest the one above, the following code works using moment:

moment().format("YYYY-MM-DDTHH:mm:ss.sssZ")
like image 50
Dimitri W Avatar answered Apr 03 '23 02:04

Dimitri W