You could use something like moment.js
Than you could do for instance
moment('2016-01-01').format('MM/DD/YYYY');
More Related Contents:
- JavaScript convert date format [duplicate]
- Date is in string format
- How do I get the current date in JavaScript?
- What are valid Date Time Strings in JavaScript?
- Detecting an “invalid date” Date instance in JavaScript
- Get month name from Date
- How to add number of days to today’s date? [duplicate]
- JavaScript function to add X months to a date
- jQuery UI DatePicker to show month year only
- Convert dd-mm-yyyy string to date
- Getting current date and time in JavaScript
- How do I pre-populate a jQuery Datepicker textbox with today’s date?
- javascript to find leap year
- How to parse a date in format “YYYYmmdd” in JavaScript?
- different result for yyyy-mm-dd and yyyy/mm/dd in javascript when passed to “new Date” [duplicate]
- Date parsing in javascript is different between safari and chrome
- How to format a Date in MM/dd/yyyy HH:mm:ss format in JavaScript? [duplicate]
- Converting Excel Date Serial Number to Date using Javascript
- How to get the hours difference between two date objects? [duplicate]
- Show week number with Javascript?
- Finding date by subtracting X number of days from a particular date in Javascript
- How do I specify the time zone when creating a JavaScript Date?
- JavaScript Date Comparisons Don’t Equal [duplicate]
- Javascript Date: next month
- Why isn’t “2016-02-16” equal to “2016-02-16 00:00”?
- from unix timestamp to datetime
- Round a timestamp to the nearest date
- How to parse a string into a date object at JavaScript?
- Javascript Date Plus 2 Weeks (14 days)
- Making a live clock in javascript