string script "win. If second textbox exceeds one year from the date entered in first textbox, then it should display an alert and blank the second date field textbox. Both the textboxes are readonly and gets the values from calender. I tried the below code and validation is not working. any help! How to convert string to timestamp and date in JS. here am using Date. parse(), but its not working in IE and FF.Newbie - Chrome Extension Spotify API. Net.