Top "Date" questions

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

how to convert java string to Date object

I have a string String startDate = "06/27/2007"; now i have to get Date object. My DateObject should be the same value …

java string date
Java SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'") gives timezone as IST

I have SimpleDateFormat constructor as SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'") and I am parsing string "2013-09-29T18:46:19Z". I have …

java date timezone date-format simpledateformat
java.util.Date format conversion yyyy-mm-dd to mm-dd-yyyy

I have a java.util.Date in the format yyyy-mm-dd. I want it to be in the format mm-dd-yyyy Below …

java date date-format
How to get current timestamp in string format in Java? "yyyy.MM.dd.HH.mm.ss"

How to get timestamp in string format in Java? "yyyy.MM.dd.HH.mm.ss" String timeStamp = new SimpleDateFormat("yyyy.…

java date datetime timestamp
How to select date from datetime column?

I have a column of type "datetime" with values like 2009-10-20 10:00:00 I would like to extract date from datetime …

mysql date datetime
I want to get Year, Month, Day, etc from Java Date to compare with Gregorian Calendar date in Java. Is this possible?

I have a Date object in Java stored as Java's Date type. I also have a Gregorian Calendar created date. …

java date compatibility
How to get year/month/day from a date object?

alert(dateObj) gives Wed Dec 30 2009 00:00:00 GMT+0800 How to get date in format 2009/12/30?

javascript date
Incrementing a date in JavaScript

I need to increment a date value by one day in JavaScript. For example, I have a date value 2010-09…

javascript date datetime
How can I get current date in Android?

I wrote the following code Date d = new Date(); CharSequence s = DateFormat.format("MMMM d, yyyy ", d.getTime()); But is …

android date simpledateformat android-date
How to format date in angularjs

I want to format date as mm/dd/yyyy. I tried the following and none of it works for me. …

angularjs date format date-format datefilter