Dates coming as NaN on Safari only
I have some dates that I'm posting that are being transformed from their raw JSON response to a nice date. This works fine for Chrome but in Safari they come across as "NaN-NaN-NaN".
Do I need to do something special for Safari?
Here's the code for the transform:
Code:
<textarea class="x-hidden-display" id="dieinfo-dates">
<h4>{dieName}</h4>
<p>ES (Baseline): {baselineESDate:date("Y-m-d")}</p>
<p>ES (Latest): {latestESDate:date("Y-m-d")}</p>
</textarea>
In JSON, they'll look like this:
"latestESDate":"2029-01-31 00:00:00.0"