Skip to main content

Questions tagged [calendar]

A calendar is a system of reckoning time in which the beginning, length and divisions of a year are defined. The term may refer to a software class or library for the manipulation and display of calendar data, or to a list of events with associated dates and times, managed by a human via an application or operating system user interface.

calendar
167 votes
13 answers
225k views

How to add calendar events in Android?

I'm just getting up to speed on Android, and today in a project meeting someone said that Android has no native calendar app so users just use whatever calendar app they like. Is this true, and if so ...
Peter Nelson's user avatar
  • 5,937
165 votes
10 answers
243k views

How to calculate the last day of the month?

I am having issues with the calculation of when the next Last Day of the Month is for a notification which is scheduled to be sent. Here is my code: RecurrenceFrequency recurrenceFrequency = ...
OakvilleWork's user avatar
  • 2,377
155 votes
17 answers
248k views

How to map month name to month number and vice versa?

I am trying to create a function that can convert a month number to an abbreviated month name or an abbreviated month name to a month number. I thought this might be a common question but I could not ...
Mark_Masoul's user avatar
  • 1,573
142 votes
3 answers
230k views

Moment.js get day name from date

I'm using jquery and moment.js for a custom calendar. I have a date object in a variable myDate like : Object { date="2014-12-23 14:00:00", timezone_type=3, timezone="Europe/Paris"} I want, using ...
Clément Andraud's user avatar
131 votes
6 answers
211k views

Creating java date object from year,month,day

int day = Integer.parseInt(request.getParameter("day")); // 25 int month = Integer.parseInt(request.getParameter("month")); // 12 int year = Integer.parseInt(request.getParameter("year")); // 1988 ...
JAVAGeek's user avatar
  • 2,734
129 votes
12 answers
262k views

How do I localize the jQuery UI Datepicker?

I really need a localized dropdown calendar. An English calendar doesn't exactly communicate excellence on a Norwegian website ;-) I have experimented with the jQuery DatePicker, their website says ...
Thomas Eyde's user avatar
  • 3,906
120 votes
13 answers
265k views

Why is the month changed to 50 after I added 10 minutes?

I have this date object: SimpleDateFormat df = new SimpleDateFormat("yyyy-mm-dd HH:mm"); Date d1 = df.parse(interviewList.get(37).getTime()); value of d1 is Fri Jan 07 17:40:00 PKT 2011 Now I am ...
junaidp's user avatar
  • 11.1k
119 votes
12 answers
168k views

Month name as a string

I'm trying to return the name of the month as a String, for instance "May", "September", "November". I tried: int month = c.get(Calendar.MONTH); However, this returns integers (5, 9, 11, ...
Gaby's user avatar
  • 1,369
119 votes
9 answers
77k views

Calendar returns wrong month [duplicate]

Calendar rightNow = Calendar.getInstance(); String month = String.valueOf(rightNow.get(Calendar.MONTH)); After the execution of the above snippet, month gets a value of 10 instead of 11. How come?
Hant's user avatar
  • 1,199
117 votes
7 answers
115k views

How can I use PHP to dynamically publish an ical file to be read by Google Calendar?

Any Google search on PHP ical just brings up phpicalendar and how to parse or read IN ical files. I just want to write a PHP file that pulls events from my database and writes them out in ical format. ...
rhodesjason's user avatar
  • 5,004
114 votes
33 answers
159k views

Calculate business days

I need a method for adding "business days" in PHP. For example, Friday 12/5 + 3 business days = Wednesday 12/10. At a minimum I need the code to understand weekends, but ideally it should account for ...
AdamTheHutt's user avatar
  • 8,467
111 votes
22 answers
306k views

How can I 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) Or what is the easiest way?
ogzd's user avatar
  • 5,632
111 votes
7 answers
217k views

How do I create a link to add an entry to a calendar?

I'm working for this nightclub and are currently making a website for them, they've got lots events and their site is built a lot around events, today they make an facebook event of every event but it ...
Hultner's user avatar
  • 3,760
97 votes
9 answers
238k views

How to handle calendar TimeZones using Java?

I have a Timestamp value that comes from my application. The user can be in any given local TimeZone. Since this date is used for a WebService that assumes the time given is always in GMT, I have a ...
Jorge Valois's user avatar
  • 1,371
93 votes
25 answers
289k views

How to sanity check a date in Java

I find it curious that the most obvious way to create Date objects in Java has been deprecated and appears to have been "substituted" with a not so obvious to use lenient calendar. How do you check ...
Bloodboiler's user avatar
  • 2,082

15 30 50 per page