Question Regarding Winbatch's Calendar Popup dialogue Controls: Default Date?

Started by mcjathan, September 24, 2014, 03:12:51 PM

Previous topic - Next topic


Hi all,

I've been examining the Winbatch example code that uses the calendar popup dialogue.  See this page:

This code uses today's date as the defaulted selected date on the calendar popup.  I would like to specify my own custom default date that will show up as the default selected date on the popup calendar.  I can't quite figure it out.  I suspect it is on this line from the sample code:

The Winbatch help page titled "Calendar Control" says this:

Normally, when a dialog box opens, the calendar defaults to today date. You can change this by assigning a value in the format of YYY:MM:DD to the variable before calling the Dialog function.

I know the answer is right in front of me.  Will someone please throw this old dog a bone?

Best regards,



Define your "Date" variable with a valid date in the "YYYY:MM:DD" format  before your dialog line (the hours:minutes:seconds can be ignored).

Put this line before your calendar one, and it should show you Christmas this year.

Date = "2014:12:25"


Nothing sucks more than that moment during an argument when you realize you're wrong. :)