But it appears that the JSON parser cannot deal with a number that large. I saw the post about using roRegEx to convert that to a string, which works just fine, but I still have no way to get a date from that string. Any ideas?
The part that’s missing is that can’t just divide the milliseconds by 1000. The JSON/Regex conversions converts the MS to a string. You can’t convert the string to an integer, it’s too big. You have to convert it to a float, then divide by 1000, then convert back to an int. Finally you can load the date with the now-converted-to-integer seconds.
The part that’s missing is that can’t just divide the milliseconds by 1000. The JSON/Regex conversions converts the MS to a string. You can’t convert the string to an integer, it’s too big. You have to convert it to a float, then divide by 1000, then convert back to an int. Finally you can load the date with the now-converted-to-integer seconds.
Since you’re already converting it to a string, why not just trim the last three digits off of the string before converting it back to an int?
The part that’s missing is that can’t just divide the milliseconds by 1000. The JSON/Regex conversions converts the MS to a string. You can’t convert the string to an integer, it’s too big. You have to convert it to a float, then divide by 1000, then convert back to an int. Finally you can load the date with the now-converted-to-integer seconds.
Since you’re already converting it to a string, why not just trim the last three digits off of the string before converting it back to an int?