tags:

views:

454

answers:

1

ASP.NET JSON serialize DateTime to the following format "\/Date(1251877601000)\/". Pls, help parse this string into the java(GWT) Date object.

At this time the solution I came with is parsing with regex, extract long.. but then I cannot push long through JSNI.

+1  A: 

Cannot You ask to produce date as string? That will be the simplest solution.

Rafal Ziolkowski
+1, to avoid cross-framework date JSON serialization, doing it explicitly your own way is best if you control both sides.
orip
I can, but there is no reason to do this. Even if I will have Date in string format, I still need to parse it. I ended with parsing string and then new Date(long).
Mike Chaliy