Print Page | Close Window

How to limit dates

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=11917
Printed Date: 29 April 2024 at 4:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to limit dates
Posted By: Alex H.
Subject: How to limit dates
Date Posted: 21 August 2008 at 4:35am
I would like to limit the displayable dates f.ex. from 1. Jan. 1900 (minimum)

to a maximum at 2099. How can I do that?

Regards

Alex



Replies:
Posted By: prashant
Date Posted: 25 September 2008 at 5:39am
COleDateTime cStartDate(2008, 1, 1, 0, 0, 0);
COleDateTime cEndDate(2008, 12, 31, 0, 0, 0);
COleDateTime cCurrDate(0, 0, 0, 0, 0, 0);

m_wndDatePicker.SetRange(&cStartDate, &cEndDate);



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net