Introduction - If you have any usage issues, please Google them yourself
String.prototype.format=function(){
if(arguments.length==0) return this
var args=[], i=0
for( i<arguments.length i++) args[i]=arguments[i]
return this.replace(/\ [sSfdDTt\ ]/g, function(m){
if(m== ) return
var v=args.shift()
switch(m.substr(1,1)){
case s : return v.toString()
case S : return +v.replace( , \\ )+
case f : return v-0
case d : return v.getFullYear()+ - +v.getMonth()+ - +v.getDate()
case D : return v.getMonth()+ - +v.getDate()
case t : return v.getHours()+ - +v.getMinutes()+ - +v.getSeconds()
case t : return v.getHour