Top "Date" questions

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

Java: getMinutes and getHours

How do you get Hours and Minutes since Date.getHours and Date.getMinutes got deprecated? The examples that I found …

java date time
How to parse date string to Date?

How do I parse the date string below into a Date object? String target = "Thu Sep 28 20:29:30 JST 2000"; DateFormat df = new …

java date format
Converting a Date object to a calendar object

So I get a date attribute from an incoming object in the form: Tue May 24 05:05:16 EDT 2011 I am writing a …

java date calendar nullpointerexception
Convert number to month name in PHP

I have this PHP code: $monthNum = sprintf("%02s", $result["month"]); $monthName = date("F", strtotime($monthNum)); echo $monthName; But it's returning …

php date
How to subtract date/time in JavaScript?

I have a field at a grid containing date/time and I need to know the difference between that and …

javascript date
PHP mysql insert date format

Im using jQuery datepicker the format of the datepicker is this 08/25/2012 i have errors when inserting to my database it …

php mysql date insert
Convert String to Calendar Object in Java

I am new to Java, usually work with PHP. I am trying to convert this string: Mon Mar 14 16:02:37 GMT 2011 Into …

java date datetime calendar simpledateformat
MySQL SELECT WHERE datetime matches day (and not necessarily time)

I have a table which contains a datetime column. I wish to return all records of a given day regardless …

mysql date select
Converting Long to Date in Java returns 1970

I have list with long values (for example: 1220227200, 1220832000, 1221436800...) which I downloaded from web service. I must convert it to Dates. …

java date long-integer