Top "Date" questions

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

Getting current date and time in JavaScript

I have a script that prints the current date and time in JavaScript, but the DATE is always wrong. Here …

javascript date time concatenation
Convert java.util.Date to String

I want to convert a java.util.Date object to a String in Java. The format is 2010-05-30 22:15:52

java date formatting java.util.date
Batch file to delete files older than N days

I am looking for a way to delete all files older than 7 days in a batch file. I've searched around …

windows date batch-file file-io cmd
How do I use PHP to get the current year?

I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky …

php date php-5.3 php-5.4 php4
Sort ArrayList of custom Objects by property

I read about sorting ArrayLists using a Comparator but in all of the examples people used compareTo which according to …

java sorting date comparator
Format JavaScript date as yyyy-mm-dd

I have a date with the format Sun May 11,2014. How can I convert it to 2014-05-11 using JavaScript? The …

javascript date formatting date-format
Get String in YYYYMMDD format from JS date object?

I'm trying to use JS to turn a date object into a string in YYYYMMDD format. Is there an easier …

javascript date date-formatting
How can I increment a date by one day in Java?

I'm working with a date in this format: yyyy-mm-dd. How can I increment this date by one day?

java date
How can I get the current date and time in UTC or GMT in Java?

When I create a new Date object, it is initialized to the current time but in the local timezone. How …

java date localization timezone gmt
How to compare dates in Java?

How do I compare dates in between in Java? Example: date1 is 22-02-2010 date2 is 07-04-2010 today date3 …

java date comparison