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
4
votes
1 answer

how to disable future months in p-calendar?

I want to disable future months and display only current month while selecting in UI, I am using p-calendar.
ramya sriram
  • 41
  • 1
  • 2
4
votes
3 answers

How to calculate monthly time differences?

A simple question: # Given the following initial time t0 <- strptime('17/Nov/2010:08:04:21',format='%d/%b/%Y:%H:%M:%S') # ...and final time t1 <- strptime('21/Jan/2011:13:11:04',format='%d/%b/%Y:%H:%M:%S') # I can calculate the difference of…
4
votes
3 answers

How to get month name from date in Presto

I use Presto and I do not know the function to get MONTH's name from a date column. I can get MONTH number using MONTH() function but I'm not able to get MONTH name. I've seen ways where a list of month names is manually created and the…
stack_pointer is EXTINCT
  • 2,263
  • 12
  • 49
  • 59
4
votes
1 answer

Month in MM using Month() in Hive

Select * from concat(YEAR(DATE_SUB(MAX(Column_name),60),MONTH(DATE_SUB(MAX(Column_name),60),-01) The month() yields only single digit for months until September i.e Jan returns 1 instead of 01. Need help in handling this. I am using this output to…
Dud
  • 69
  • 2
  • 7
4
votes
4 answers

get between two date all days for every Month in PHP

How i can to get all days for every Month between two days in array like this $dateStart = "2016/12/14"; $dateFin = "2017/04/21" [2016/12/14 - 2016/12/31] => 17 days [2017/01/01 - 2017/01/31] => 31 days [2017/02/01 - 2017/02/28] => 28…
Younes Zaidi
  • 1,180
  • 1
  • 8
  • 25
4
votes
1 answer

get last day of the month from year month in python

I need to get first and last day of a month based on the given yearmonth value. I am able to get the first day, how do we get the last day of the month here ( in python) : from datetime import date def first_day_of_month(year,month): return…
Data Enthusiast
  • 521
  • 4
  • 12
  • 22
4
votes
1 answer

Specify first month in Month Calendar when dimensions are larger than 1,1

Is it possible in anyway to specify which month is to be displayed first in a Month Calendar when you are displaying more than one month at a time? I've seen similar questions but none have ever been answered, instead they have been given a…
Cody
  • 63
  • 10
4
votes
1 answer

TMonthCalendar behaviour changed

In the process of migrating one of my Win32 VCL application from Delphi 2006 to delphi XE6 I encountered the following issue : One of my forms has a TMonthCalendar (plugged on a TPanel for the record) to help the user select a week to view in a…
mathieu
  • 235
  • 2
  • 11
4
votes
1 answer

Change color of dates on monthCalendar

How do I change the color of the dates on a monthCalendar? I have a dataGridView with a column for dates. How do I takes those dates, input them into my monthCalendar, and change the color of the dates in the column?
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
4
votes
1 answer

How can I get previous month and year using python

How can I get previous month and year using python. Is it possible to get it using datetime module I want to get it like following example current: 2012-03 prev 2012-02 current: 2012-01 prev 2011-12
user2412872
  • 43
  • 1
  • 3
3
votes
1 answer

Get the Number of Months *Per Year* between Two (2) Dates in Javascript [Ex: Aug 2019 - Aug 2022]

This might be a duplicate with Difference in Months between two dates in JavaScript but I need to calculate the number of months PER YEAR if the inputs have multiple years. For example: Start Date: 2019-05-08 End Date: 2022-05-08 So that would be…
3
votes
1 answer

Is it possible to increase size of calendar popup in winform?

I am trying to increase calendar popup's size. Increasing font only increases the height of the calendar box and not the pop up. Dates in popup are still small. Can I do this without using any third party controls etc? If yes how?
SamuraiJack
  • 5,131
  • 15
  • 89
  • 195
3
votes
3 answers

VBA Code for name of previous month

I have added text in to my email that goes like: "please provide numbers for MMMM month end" - where MMMM is the name of the previous month. So it it's April today, MMMM will show March. I have the following code: Dim newDate: newDate = DateAdd("M",…
wasimakram101
  • 103
  • 1
  • 2
  • 9
3
votes
1 answer

Changing the state/format of a TMonthCalendar in Delphi

Using Delphi XE6, I am creating a TdateTimePicker-like control, but for a couple of reasons, I am using a TButtonedEdit which has a TMonthCalendar "embedded" within it. These are defined thus: TMyMonthCalendar = class(TMonthCalendar) procedure…
TomB
  • 750
  • 4
  • 17
3
votes
6 answers

Q&A: How do I figure out what the last day of the month is?

I was trying to write a roll-your-own timezone converter and I needed a way of determining what the last possible day of the month was. Upon some research, I discovered the formulas for finding a leap year. It's a small contribution, but maybe I'll…
1
2
3
21 22