Friday, February 17, 2017

Change DATE Format DDMMYYYY OR MMDDYY


Function to get DD MM YYYY  OR MMDDYY


function formattedDate(date) {
    var d = new Date(date || Date.now()),
        month = '' + (d.getMonth() + 1),
        day = '' + d.getDate(),
   year = d.getFullYear();
   if (month.length < 2) month = '0' + month;
   if (day.length < 2) day = '0' + day;
   return [day,month,year].join('/');
}

No comments:

🧠 Steps to Build a POC Locally with Windows AI Foundry

  🚀 Introduction What is Foundry Local? Foundry Local brings the power and trust of Azure AI Foundry to your device. It includes everything...