Username
Password
Remember Me
JakeGrover Sea Gull
Joined: 21 May 2010Age: 26Gender: MalePosts: 221Location: Vermont, USA
var date = "10.28.2008"; var replaceRegex = /\./g; date.replace(replaceRegex, "/"); alert(date); Shouldn't the alert say "10/28/2008"? It doesn't seem to be doing that.
CloudWalker Veteran
Joined: 26 Mar 2009Age: 34Gender: MalePosts: 711
You need to store the output: date = date.replace(replaceRegex, "/");
Okay, thanks.