Home » U++ Library support » CalendarCtrl » Entering mm/dd but not year... Setting default year?
Entering mm/dd but not year... Setting default year? [message #23405] |
Sat, 17 October 2009 00:43  |
jeremy_c
Messages: 175 Registered: August 2007 Location: Ohio, USA
|
Experienced Member |
|
|
In the program I am writing it's going to be common to enter some historical data (pilots logbook). It's also common on your paper logs to write "7/22" and then 10 pages later when the year changed from 1995 to 1996, you will see a semi crossed out entry with "1 9 9 6" written across it.
Therefore... I would like to allow entry of "7/22" (which it currently does just fine) but also set the default year. For me, the default year will be the previously entered date's year. Thus, if you are entering your backlog from 1995, you can enter 1995 the first entry then the next 50 entries can be 1/12, 2/22, 3/19, etc... and they will turn out to be 1/12/1995, 2/22/1995, etc...
I tried setting the value to Date(1995, 0, 0) but that displays 00/00/1995.
Any thoughts on making this happen? I was browsing the DateTimeCtrl.cpp source w/o much luck this far :-/
Jeremy
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 13:11:00 CEST 2025
Total time taken to generate the page: 0.02059 seconds
|