Hi eric,
Thank you for Your reply .
I'm doing
J2ee application but i will get the request object from the asp page .In the request paramater i will get the string like
"CookieToken=1/1/2008 5:06:09 PM; UNTOPRX=GGSDFGVXGSCRWGJHDXGSGGDGFSWDHGSDGH="
so in my
java script i want to replace the date with another date.
so i will be using the Sting.replace methos in javascript.
In string.replace the first argument is the regular expression.
so i need the regular expression for the following date format.
The Date may be in following format.
mm/dd/yyyy hh:mm:ss AM
eg:
1/1/2008 5:06:09 PM
12/25/2003 12:24:30 AM
for month,day and hour there will not be leading '0' and for minutes ,sec there will leading '0'.