I want to parse date in my page to Javascript\'s Date.
Date
So I have this in my page
01-07-2012 01:04 PM
try this:
var tagText = $(this).html(); tagText = tagText.replace(/-/g, '/'); var givenDate = new Date(tagText); alert(givenDate);