Top "Date" questions

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

Why is subtracting these two times (in 1927) giving a strange result?

If I run the following program, which parses two date strings referencing times 1 second apart and compares them: public static …

java date timezone
Convert dd-mm-yyyy string to date

i am trying to convert a string in the format dd-mm-yyyy into a date object in JavaScript using the following: …

javascript date
Get the current year in JavaScript

How do I get the current year in JavaScript?

javascript date
Subtract days from a date in JavaScript

Does anybody know of an easy way of taking a date (e.g. Today) and going back X days? So, …

javascript date datetime
MySQL Query GROUP BY day / month / year

Is it possible to make a simple query to count how many records I have in a determined period of …

mysql sql date datetime group-by
How to add number of days to today's date?

I need to be able to add 1, 2 , 5 or 10 days to today's date using jQuery.

javascript jquery date
How to subtract a day from a date?

I have a Python datetime.datetime object. What is the best way to subtract one day?

python datetime date
Calendar date to yyyy-MM-dd format in java

How to convert calendar date to yyyy-MM-dd format. Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 1); Date date = cal.getTime(); …

java date calendar converter
Calculating the difference between two Java date instances

I'm using Java's java.util.Date class in Scala and want to compare a Date object and the current time. …

java date time timedelta java.util.date
How to calculate age (in years) based on Date of Birth and getDate()

I have a table listing people along with their date of birth (currently a nvarchar(25)) How can I convert that …

sql-server sql-server-2005 select date