String slash replace


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //eg replace "/" by "-"
  2. fecha=12/10/2011;
  3. fecha=fecha.replace(/\//g,"-");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.