How can I convert the below
Javascript Date object Mon Apr 03 1978 01:00:00 GMT+0100 (GMT Daylight Time)
to
Date string /Date(260409600000)/.
My server returns as JSON string like "DateOfBirth":"\/Date(260409600000)\/" so we need to format the normal Date value to this type to process further.
var myDateObj;//Mon Apr 03 1978 01:00:00 GMT+0100 (GMT Daylight Time)
I tired using Date.parse(myDateObj), but gives only 260409600000
Also calling new Date(260409600000).toJSON() gives 1978-04-03T00:00:00.000Z and not /Date(260409600000)/
260409600000and you're getting260409600000, what exactly is the problem ?260409600000, but you wantDate(260409600000)string?