Top "Calendar" questions

A calendar is a system of reckoning time in which the beginning, length and divisions of a year are defined.

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
How to change date format (MM/DD/YY) to (YYYY-MM-DD) in date picker

I have following datepicker script: <script> $(function(){ $("#to").datepicker(); $("#from").datepicker().bind("change",function(){ var minValue = $(this).val(); …

javascript jquery jquery-ui calendar
Java: Get month Integer from Date

How do I get the month as an integer from a Date object (java.util.Date)?

java date calendar
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 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
How to subtract X day from a Date object in Java?

I want to do something like: Date date = new Date(); // current date date = date - 300; // substract 300 days from current date …

java date datetime calendar java.util.date
How do I calculate someone's age in Java?

I want to return an age in years as an int in a Java method. What I have now is …

java date calendar
How to get complete month name from DateTime

What is the proper way to get the complete name of month of a DateTime object? e.g. January, December. …

c# datetime calendar
How to subtract X days from a date using Java calendar?

Anyone know a simple way using Java calendar to subtract X days from a date? I have not been able …

java calendar subtraction
How to get Month Name from Calendar?

Is there a oneliner to get the name of the month when we know int monthNumber = calendar.get(Calendar.MONTH) …

java calendar