Well for hours and minutes (hh:mm
) you can use this:
var start = new Date(this.props.item.start); // this props returns Thu, 16 Feb 2017 08:00:00 GMT
var dateStr = start.getHours() + ':' + start.getMinutes();
More Related Contents:
- 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
- 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]
- JavaScript new Date Ordinal (st, nd, rd, th)
- Converting Excel Date Serial Number to Date using Javascript
- Show week number with Javascript?
- Finding date by subtracting X number of days from a particular date in Javascript
- Easiest way to convert month name to month number in JS ? (Jan = 01)
- 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
- Convert string to datetime
- Round a timestamp to the nearest date
- How to parse a string into a date object at JavaScript?
- 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