tagged [calendar]
How do I get the AM/PM value from a DateTime?
How do I get the AM/PM value from a DateTime? The code in question is below: ``` public static string ChangePersianDate(DateTime dateTime) { System.Globalization.GregorianCalendar PC = new System.G...
- Modified
- 29 Aug at 02:45
Good date-picker for ASP.NET
Good date-picker for ASP.NET I have always been a very big fan of the DHTML calendar [http://www.dynarch.com/projects/calendar/](http://www.dynarch.com/projects/calendar/) I was planning on using this...
Week of Year C# Datetime
Week of Year C# Datetime I have following code to get the weeknumber of the year given in the DateTime object Time I give the function the date 1/1/20
- Modified
- 8 Aug at 16:47
Getting last day of the month in a given string date
Getting last day of the month in a given string date My input string date is as below: I am getting the month as below: But how do I get the last calendar day of the month i
Creating java date object from year,month,day
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.p...
What is the best calendar pop-up to populate a web form?
What is the best calendar pop-up to populate a web form? I want to be able to make an HTTP call updating some select boxes after a date is selected. I would like to be in control of updating the textb...
- Modified
- 25 Oct at 14:51
How do I calculate someone's age in Java?
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 the following where getBirthDate() returns a Date object (with the birth date ...
How do I localize the jQuery UI Datepicker?
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 ...
- Modified
- 19 Jun at 08:50
Calendar Recurring/Repeating Events - Best Storage Method
Calendar Recurring/Repeating Events - Best Storage Method I am building a custom events system, and if you have a repeating event that looks like this: Event A repeats every 4 days starting on March 3...
- Modified
- 3 Mar at 20:32
Get first date of current month in java
Get first date of current month in java I am trying to get to and from date where `ToDate` will have previous date and `FromDate` will have first date of the current month. For January it would be `1/...
Why Java Calendar set(int year, int month, int date) not returning correct date?
Why Java Calendar set(int year, int month, int date) not returning correct date? According to doc, calendar set() is: [http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Calendar.html#set%28int,%2...
Calendar date to yyyy-MM-dd format in java
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(); S...
- Modified
- 20 Feb at 01:22
What's the right way to create a date in Java?
What's the right way to create a date in Java? 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 obj...
Should I store dates or recurrence rules in my database when building a calendar app?
Should I store dates or recurrence rules in my database when building a calendar app? I am building a calendar website (`ASP.NET MVC`) application (think simple version of outlook) and i want to start...
- Modified
- 19 Apr at 08:23
How do I determine if a given date is the Nth weekday of the month?
How do I determine if a given date is the Nth weekday of the month? Here is what I am trying to do: Given a date, a day of the week, and an integer `n`, determine whether the date is the `n`th day of ...
Converting a Date object to a calendar object
Converting a Date object to a calendar object So I get a date attribute from an incoming object in the form: I am writing a simple helper method to convert it to a calendar method, I was using the fol...
- Modified
- 31 May at 10:5
PHP datepicker control and event calendar needed
PHP datepicker control and event calendar needed I'm looking for suggestions for a PHP: 1. calendar control/widget that I can embed on a web page to enable users to select dates. A datepicker. 2. cale...
Zend Gdata - setVisibility for newEventEntry? (specify events for multiple calendars)
Zend Gdata - setVisibility for newEventEntry? (specify events for multiple calendars) I know that you can use setVisibility('private-abcdefg') for newEventQuery() in order to specify a particular cale...
- Modified
- 24 Jul at 04:11
Get refresh token google api
Get refresh token google api I can't get my refresh token with my code. I can only get my access token, token type etc., I have followed some tutorials like putting `access_type=offline` on my login U...
- Modified
- 17 May at 11:51
Dynamically add CalendarExtender to Textbox subclass server control?
Dynamically add CalendarExtender to Textbox subclass server control? I'm trying to create a server control, which inherits from TextBox, that will automatically have a [CalendarExtender](http://www.as...
- Modified
- 17 Sep at 14:41
WPF Calendar Control holding on to the Mouse
WPF Calendar Control holding on to the Mouse So I dropped the standard WPF `Calendar` control on the MainWindow.xaml in a brand new WPF App in VS2010. If I click on a day in the calendar and then try ...
Implementing a non-terrestrial calendar
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](http://msdn.microsoft.com/en-us/...
System.Globalization.Calendar.GetWeekOfYear() returns odd results
System.Globalization.Calendar.GetWeekOfYear() returns odd results I'm in the middle of calculating week numbers for dates, but the `System.Globalization.Calendar` is returning odd results for (amongst...
- Modified
- 10 Jan at 19:19
Google Calendar API with ASP.NET
Google Calendar API with ASP.NET I'm confused about using the Google Calendar API for adding/modifying events in ASP.NET webforms (C#). I'm not sure if I need oAuth or what. My app is on my own server...
- Modified
- 6 Jan at 22:36