FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Calendar Control Date Format
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Calendar Control Date Format
Posted: Fri May 21, 2010 09:27 PM

In the tcalenda.prg class, you define the date format to British by default. All of my date lookups are American, but once the calendar is run once, it changes the display throughout the program.

Is there a call to override your default ? If not, there needs to be. I revised it in the source code, but we wouldn't want to do this with every future release. Thanks.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Calendar Control Date Format
Posted: Fri May 21, 2010 10:38 PM
Tim...

the calendar is a control from window api, this depend of date format from windows, you can use SET DATE TO AMERICAN



using SET DATE TO AMERICAN



the class not use British format by default, the class use #define DATEFORMAT "dd/mm/yyyy" only for control, for this way the class "know" where is DAY, MONTH and YEAR (always), i mean if you use SET DATE TO AMERICAN, internally the class change to "dd/mm/yyyy" in some methods but after restore to America format again, METHOD SaveDateFormat() and METHOD RestoreDateFormat()

Continue the discussion