-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Hi @taylorhakes, I am hoping to reach you by opening this issue and also help anybody that might have encountered this problem before.
Issue while:
Generating a YYYY-MM-DD date using fecha.format(dateObj, 'YYYY-MM-DD')
Notes on the issue:
When formatting the date, for some reason on a desktop, the function works like a charm in any web browser I've tested (firefox, safari, chrome). However, on iOS, in Chrome and Safari, I keep receiving an "Invalid Date pass to format" error (See screenshot).
Code I am using:
data: { checkIn: fecha.format( new Date(datepicker.getValue().split(' - ')[0]), 'YYYY-MM-DD' ), checkOut: fecha.format( new Date(datepicker.getValue().split(' - ')[1]), 'YYYY-MM-DD' ) },
- As you can see in the screenshot, two date strings are logged. These are the ones being passed to the function derived from the split.
I am looking forward to your response.
Metadata
Metadata
Assignees
Labels
No labels
