Just crop the string:
var date = new Date("2013-03-10T02:00:00Z");
date.toISOString().substring(0, 10);
Or if you need only date out of string.
var strDate = "2013-03-10T02:00:00Z";
strDate.substring(0, 10);
More Related Contents:
- Convert from one date format to another in javascript [duplicate]
- Date is in string format
- Format JavaScript date as yyyy-mm-dd
- How to convert a Date to UTC?
- Get month name from Date
- Incrementing a date in JavaScript
- Javascript – get array of dates between 2 dates
- Difference in Months between two dates in JavaScript
- Invalid date in safari
- How to get first and last day of the current week in JavaScript
- Difference between Date(dateString) and new Date(dateString)
- How to add/subtract dates with JavaScript?
- `date.setMonth` causes the month to be set too high if `date` is at the end of the month
- Why does Javascript getYear() return 108?
- Javascript format date / time [duplicate]
- How to create a date object from string in javascript [duplicate]
- Javascript: parse a string to Date as LOCAL time zone
- Regarding JavaScript new Date() and Date.parse()
- How to Convert any of the 5 Islamic (Hijri) Calendars’ Dates to any of 18 World Calendars without External Libraries or Complex Astronomical Formulas
- Moment Js UTC to Local Time
- Calculating the difference between two dates
- JavaScript Date.getWeek()? [duplicate]
- JavaScript date objects UK dates
- Javascript date variable assignment
- Work with a time span in Javascript
- Format Date time in AngularJS
- Add 30 days to date (mm/dd/yy)
- How do I format a Javascript Date?
- Get today date in Google Apps Script
- moment.js isValid function not working properly