Top "Date" questions

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

JavaScript seconds to time string with format hh:mm:ss

I want to convert a duration of time, i.e., number of seconds to colon-separated time string (hh:mm:ss) …

javascript date time date-format time-format
How to find the last day of the month from date?

How can I get the last day of the month in PHP? Given: $a_date = "2009-11-23" I want 2009-11…

php date
Get integer value of the current year in Java

I need to determine the current year in Java as an integer. I could just use java.util.Date(), but …

java datetime date
How do you display JavaScript datetime in 12 hour AM/PM format?

How do you display a JavaScript datetime object in the 12 hour format (AM/PM)?

javascript datetime date time format
Compare given date with today

I have following $var = "2010-01-21 00:00:00.0" I'd like to compare this date against today's date (i.e. I'd like to …

php date datetime
How to set default value to the input[type="date"]

I have tried (JSFiddle): <input type="date" value="2012-3-23"> but it doesn't work, how can I set …

html date html-input
Adding days to a date in Python

I have a date "10/10/11(m-d-y)" and I want to add 5 days to it using a Python script. Please consider a …

python date datetime timedelta
Adding days to $Date in PHP

I have a date returned as part of a mySQL query in the form 2010-09-17 I would like to …

php date
Why does Date.parse give incorrect results?

Case One: new Date(Date.parse("Jul 8, 2005")); Output: Fri Jul 08 2005 00:00:00 GMT-0700 (PST) Case Two: new Date(Date.parse("2005-07-08")); …

javascript date
What is this date format? 2011-08-12T20:17:46.384Z

I have the following date: 2011-08-12T20:17:46.384Z. What format is this? I'm trying to parse it with Java 1.4 …

java date time format simpledateformat