Top "Date" questions

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

Detecting an "invalid date" Date instance in JavaScript

I'd like to tell the difference between valid and invalid date objects in JS, but couldn't figure out how: var …

javascript date
Converting string to Date and DateTime

If I have a PHP string in the format of mm-dd-YYYY (for example, 10-16-2003), how do I properly convert …

php string datetime date
How to convert date to timestamp in PHP?

How do I get timestamp from e.g. 22-09-2008?

php date timestamp
How to set input type date's default value to today?

The HTML5 input types are great, Opera's new built-in date picker is a breeze, and Chrome has at least supported …

html date input
Get difference between 2 dates in JavaScript?

How do I get the difference between 2 dates in full days (I don't want any fractions of a day) var …

javascript date
Get month name from Date

How can I generate the name of the month (e.g: Oct/October) from this date object in JavaScript? var …

javascript date date-format time-format
How do you convert a JavaScript date to UTC?

Suppose a user of your website enters a date range. 2009-1-1 to 2009-1-3 You need to send this …

javascript date utc
Select data from date range between two dates

I have a table Named Product_Sales and it holds data like this Product_ID | Sold_by | Qty | From_date | …

sql date range
Best approach to remove time part of datetime in SQL Server

Which method provides the best performance when removing the time portion from a datetime field in SQL Server? a) select …

sql sql-server tsql datetime date
How to add 30 minutes to a JavaScript Date object?

I'd like to get a Date object which is 30 minutes later than another Date object. How do I do it …

javascript date date-manipulation