Questions tagged [monthcalendar]

MonthCalendar is a Windows Form UI Control which enables easy picking of dates from a visual monthly calendar display.

MonthCalendar is a selectable calendar widget, that enables the user to select a date using a visual monthly calendar display. It is drawn by the operating system, so the look is native.

It gives the user a bunch of customization option, changing ForeColor, Font etc. Here's an example of MonthCalendar control in C# from this website.

using System;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
    public Form1()
    {
        InitializeComponent();

        // Set the BoldedDates property to a DateTime array.
        // ... Use array initializer syntax to add tomorrow and two days after.
        monthCalendar1.BoldedDates = new DateTime[]
        {
        DateTime.Today.AddDays(1),
        DateTime.Today.AddDays(2),
        DateTime.Today.AddDays(4)
        };
    }
    }
}
326 questions
141
votes
41 answers

Best way to find the months between two dates

I have the need to be able to accurately find the months between two dates in python. I have a solution that works but its not very good (as in elegant) or fast. dateRange = [datetime.strptime(dateRanges[0], "%Y-%m-%d"),…
Joshkunz
  • 5,575
  • 6
  • 28
  • 24
36
votes
7 answers

NSDateFormatter "Month" in 3 letters instead of full word

NSDateFormatter* formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"dd-MM-YYYY HH:mm"]; [formatter setTimeZone:[NSTimeZone systemTimeZone]]; If i choose MM i get the month in number: 09-05-2012 15:33 If i…
bruno
  • 2,154
  • 5
  • 39
  • 64
11
votes
3 answers

MySQL monthly Sale of last 12 months including months with no Sale

SELECT DATE_FORMAT(date, "%b") AS month, SUM(total_price) as total FROM cart WHERE date <= NOW() and date >= Date_add(Now(),interval - 12 month) GROUP BY DATE_FORMAT(date, "%m-%Y") This query displaying result for only existing month. I need all 12…
Wasim A.
  • 9,660
  • 22
  • 90
  • 120
10
votes
3 answers

convert a column in a python pandas from STRING MONTH into INT

In Python 2.7.11 & Pandas 0.18.1: If we have the following csv file: YEAR,MONTH,ID 2011,JAN,1 2011,FEB,1 2011,MAR,1 Is there any way to read it as a Pandas data frame and convert the MONTH column into strings like…
Chubaka
  • 2,933
  • 7
  • 43
  • 58
10
votes
3 answers

Month name from Month Numbers in android

I have a problem with converting the month number into month Name that is if month number 1 or 2 its returning March only. But for 1 it should return Feb right ? Previously i had this same problem for one day but next day it automatically worked i…
Android
  • 388
  • 2
  • 3
  • 14
8
votes
3 answers

Get Week Of The Year

Delphi Xe, Win 7, System TimeZone UTC+4:0, The first day of week in system - Monday, Time is synchronised with time.windows.com In a palette of standard components Delphi Win32 there is component MonthCalendar, at it property WeekNubers=true…
Gu.
  • 1,947
  • 4
  • 30
  • 49
8
votes
4 answers

How can I change the color of certain dates in the MonthCalendar control?

How can I change the color of certain dates in the MonthCalendar control in VB.NET? For example, I need to change the color of Jan 21 to Red, Sundays to Orange and so on...
SpongeBob SquarePants
  • 1,035
  • 12
  • 26
  • 46
6
votes
3 answers

capture doubleclick for MonthCalendar control in windows forms app

How do I capture a doubleclick event of the System.Windows.Forms.MonthCalendar control? I've tried using MouseDown's MouseEventArgs.Clicks property, but it is always 1, even if I doubleclick.
Bogdan Verbenets
  • 25,686
  • 13
  • 66
  • 119
6
votes
3 answers

Get saturday date value from a selected week using a month calendar

I am kinda stuck about this problem. How can I get the month calendar saturday values when i selected a specific date. For example: i selected February 14 on the month calendar. After selecting it there will be a prompt which contains Saturday…
Holyoxx
  • 377
  • 1
  • 7
  • 16
6
votes
4 answers

Possible to set monthCalendar to show current month and previous 2 months?

In a WinForms (3.5) application there is form with a monthCalendar control. The calendar control has a calendarDimension of 3 columns by 1 row. This means that it currently shows June, July, August of 2010. Is it possible to have the calendar to…
John M
  • 14,338
  • 29
  • 91
  • 143
5
votes
4 answers

How can i show month selection calendar in my app

I am interested in showing list of 12 months like in similar way to datepicker's month selection control. But i don't like to show the date picker to show the dates of that month too... only month view is ok so that i can select month from the…
KoolKabin
  • 17,157
  • 35
  • 107
  • 145
5
votes
1 answer

How to print Hijrah months in java?

Any enum to associate below months? 1 Muharram 2 Safar 3 Rabi\u02bb I Rabi\u02bb II Jumada I Jumada II Rajab Sha\u02bbban Ramadan Shawwal Dhu\u02bbl-Qi\u02bbdah Dhu\u02bbl-Hijjah
5
votes
3 answers

Month field on EXTJS 5.1

I got this awesome fiddle https://fiddle.sencha.com/#fiddle/h5i from another stack overflow post (thanks igor). BUT I have one problem: the code doesn't work if I select extjs version 5.1, which is the version I use in my application. The problem is…
JkSuf
  • 343
  • 1
  • 6
  • 22
5
votes
3 answers

Change month calendar size

Is there any possible way to change the calendar control width and height . I want to change the width and height of the calendar . These step when i google i found 1) Drop the month calendar in panel and allow dropping true . And Increase the size…
A.Goutam
  • 3,422
  • 9
  • 42
  • 90
5
votes
3 answers

C# and Month Calendar, selecting multiple dates

I am making a program that will help people "book" orders for a department in C#. They need to be able to choose multiple dates in different months. I would prefer to have it so they can click a date, and then shift click another one to select all…
Napoli
  • 549
  • 2
  • 8
  • 13
1
2 3
21 22