Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

Having Trouble opening app on iPhone.

Hello, I am also having this issue, in preview in chrome the date is shown correctly but on IOS/Safari/Firefox i get a NAN/NAN/NAN

I used the code form the link ask the last person read.
Image

what am i missing ?

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Having Trouble opening app on iPhone.

Hello,

Could you provide a mapping to which you add this code?

Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

Having Trouble opening app on iPhone.

here is the mapping Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Having Trouble opening app on iPhone.

Please replace your code with the following one:
pre
code
var arr = value.split(/[- :]/);
var date = new Date(arr[0], arr[1]-1, arr[2], arr[3], arr[4], arr[5]);
return jQuery.datepicker.formatDate("dd/mm/yy", date);
/code
/pre

Shawn Johnson
Posts: 0
Joined: Wed Jan 15, 2014 4:17 pm

Having Trouble opening app on iPhone.

that fixed the issue. Thank you

Return to “Issues”