Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Javascript To Convert Date To Mm/dd/yyyy Format

DZone's Guide to

Javascript To Convert Date To Mm/dd/yyyy Format

· Web Dev Zone
Free Resource

Should you build your own web experimentation solution? Download this whitepaper by Optimizely to find out.



function GetFormattedDate() {
    var todayTime = new Date();
    var month = format(todayTime .getMonth() + 1);
    var day = format(todayTime .getDate());
    var year = format(todayTime .getFullYear());
    return month + "/" + day + "/" + year;
}



Implementing an Experimentation Solution: Choosing whether to build or buy?

Topics:
web dev ,javascript

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}