JSON - How to format a Date String

Hi.
I have web service that returns a value like

/Date(1357142400000)/

How can I format like  'Jan 2  11:00 AM'

When I tried using the Date()  it returns

"Wed Jan 02 21:46:20 2013"    Which can't be correct.
LVL 1
JElsterAsked:
Who is Participating?
 
Sar1973Connect With a Mentor Commented:
This function:
function myDateConverter() {
var myDate = new Date(1357142400000);
var myGMTDate=myDate.toUTCString();
}

Open in new window

will output "Wed, 2 Jan 2013 16:00:00 UTC".
0
 
JElsterAuthor Commented:
Hi..
I still don't see how to do it.
0
 
Sar1973Commented:
Use then one or more between these functions and the JS string functions to create a customised date string.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.