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


You need to login to view comments.