Top "Date" questions

A date is a reference to a particular day represented within a calendar system, and consists of year, month and day.

How do I get the number of days between two dates in JavaScript?

How do I get the number of days between two dates in JavaScript? For example, given two dates in input …

javascript date
How to format a UTC date as a `YYYY-MM-DD hh:mm:ss` string using NodeJS?

Using NodeJS, I want to format a Date into the following string format: var ts_hms = new Date(UTC); ts_…

javascript node.js date
Convert one date format into another in PHP

Is there a simple way to convert one date format into another date format in PHP? I have this: $old_…

php date datetime format date-conversion
How to convert TimeStamp to Date in Java?

How do I convert 'timeStamp' to date after I get the count in java? My current code is as follows: …

java date jdbc timestamp
How to set time zone of a java.util.Date?

I have parsed a java.util.Date from a String but it is setting the local time zone as the …

java date timezone java.util.date
How to set date format in HTML date input tag?

I am wondering whether it is possible to set the date format in the html <input type="date">&…

html date input format
Adding one day to a date

My code to add one day to a date returns a date before day adding: 2009-09-30 20:24:00 date after adding …

php date datetime
How to check whether an object is a date?

I have an annoying bug in on a webpage: date.GetMonth() is not a function So, I suppose that I …

javascript date
Creating a range of dates in Python

I want to create a list of dates, starting with today, and going back an arbitrary number of days, say, …

python datetime date
How to determine day of week by passing specific date?

For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the …

java date