dd-mm-yyyy in javascript

date format in javascript dd mm yyyy



Chang date format in JavaScript

function datef(x){
var arr = new Array();
arr=["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
arr2=x.split('-');
i=parseInt(arr2[1],10);
d=arr2[2]+"-"+arr[i]+"-"+arr2[0];
return d;
}

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress