Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript replace string at position

var myString = "Mar 16, 2010 00:00 AM";

myString = myString.substring(0, 13) + 
           "1" + 
           myString.substring(14, myString.length);
           
// output: Mar 16, 2010 10:00 AM
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #replace #string #position
ADD COMMENT
Topic
Name
5+6 =