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
91 votes
3 answers
224k views

What's the right way to create a date in Java? [duplicate]

I get confused by the Java API for the Date class. Everything seems to be deprecated and links to the Calendar class. So I started using the Calendar objects to do what I would have liked to do with a ...
seb's user avatar
  • 2,136
91 votes
1 answer
2k views

Implementing a non-terrestrial calendar

As I was looking into solutions for another question, I found myself wondering whether it was possible to use .NET's Calendar class to implement a calendar that wasn't based on Earthly conventions. ...
Bobson's user avatar
  • 13.6k
90 votes
5 answers
29k views

Adding a Resource View/Gannt chart to jQuery Fullcalendar

I am using jQuery Fullcalendar and if you're not using it I suggest you do too because it is absolutely fantastic at what it does! However to be really useful to me and my project (and many others) I ...
Tim's user avatar
  • 3,121
85 votes
10 answers
76k views

Is there any ready-made calendar control for iPhone apps? [closed]

I am building an applicaiton for the iPhone that will display upcoming and past events. I settled for a list view, but then I realized that a calendar (just like the one displayed in the "month" view ...
chesterbr's user avatar
  • 3,040
81 votes
17 answers
274k views

Getting last day of the month in a given string date

My input string date is as below: String date = "1/13/2012"; I am getting the month as below: SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy"); Date convertedDate = dateFormat.parse(...
Vicky's user avatar
  • 17.2k
79 votes
4 answers
43k views

What parameters are required to create an "Add to Google Calendar" link?

We can use this link to add a new event to Google Calendar by parameters https://www.google.com/calendar/render? action=TEMPLATE& text=EventName& dates=20131206T050000Z/20131208T060000Z &...
Huei Tan's user avatar
  • 2,265
79 votes
2 answers
3k views

Google Calendar Push Notifications SetUp

I'm trying to setup a Push Notifications for Google Calendar using PHP and V3 api. I've got the Auth2.0 Permission and I'm able to create events on google from my application. Now I want to know when ...
Jesús Alberto González López's user avatar
77 votes
5 answers
251k views

How to set time to a date object in java

I created a Date object in Java. When I do so, it shows something like: date=Tue Aug 09 00:00:00 IST 2011. As a result, it appears that my Excel file is lesser by one day (27 feb becomes 26 feb and so ...
CyprUS's user avatar
  • 4,229
76 votes
5 answers
98k views

How can I utilize SimpleDateFormat with Calendar?

I've got GregorianCalendar instances and need to use SimpleDateFormat (or maybe something that can be used with calendar but that provides required #fromat() feature) to get needed output. Please, ...
Denys S.'s user avatar
  • 6,494
73 votes
32 answers
190k views

Check if a given time lies between two times regardless of date

I have timespans: String time1 = 01:00:00 String time2 = 05:00:00 I want to check if time1 and time2 both lies between 20:11:13 and 14:49:00. Actually, 01:00:00 is greater than 20:11:13 and less ...
sjain's user avatar
  • 23.3k
72 votes
3 answers
13k views

Visualization of calendar events. Algorithm to layout events with maximum width

I need your help with an algorithm (it will be developed on client side with javascript, but doesn't really matter, I'm mostly interested in the algorithm itself) laying out calendar events so that ...
Alexey's user avatar
  • 3,464
71 votes
3 answers
50k views

How to save and retrieve Date in SharedPreferences

I need to save a few dates in SharedPreferences in android and retrieve it. I am building reminder app using AlarmManager and I need to save list of future dates. It must be able to retrieve as ...
Isuru Madusanka's user avatar
69 votes
8 answers
107k views

Date object to Calendar [Java]

I have a class Movie in it i have a start Date, a duration and a stop Date. Start and stop Date are Date Objects (private Date startDate ...) (It's an assignment so i cant change that) now I want to ...
Samuel's user avatar
  • 18.5k
69 votes
2 answers
58k views

Difference between Calendar.HOUR and Calendar.HOUR_OF_DAY?

What is the difference between Calendar.HOUR and Calendar.HOUR_OF_DAY ? When to use Calendar.HOUR and Calendar.HOUR_OF_DAY ? I am confused sometime Calendar.HOUR this works fine and othertime Calendar....
Vishwesh Jainkuniya's user avatar
68 votes
8 answers
227k views

How to convert Calendar to java.sql.Date in Java?

Calendar cal; String sql = "INSERT INTO ttable (dt) values (?);" //dt is a dateTime field in ttable PreparedStatement stmt = connection.prepareStatement(sql); stmt = setDate(1,cal); //not working ...
Alex's user avatar
  • 3,355

15 30 50 per page