CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Min / Max Dates

by Aggie85 » 11 Jun 2016 20:45

Howdy All!

The Min and Max dates to NOT work in the latest version.

If you set them both, the only date the control shows is 12/31/1969!

Best Regards,

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Jorge Sousa » 13 Jun 2016 09:47

Hi Aggie85

How are you setting the dates?

this is how you must do (in Delphi)

Code: Select all
const
  MobiDateJS = '%d,%d,%d';
var
  Y,M,D: Word;
  Dt: string;
begin
  DecodeDate(ADate,Y,M,D);
  Dt:= Format(MobiDateJS,[Y,M-1,D]);
  AMobiScroll.PresetDateOptions.MinDate:= Dt;
end;


Same thing for MaxDate
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Aggie85 » 13 Jun 2016 13:27

Howdy Jorge!

For testing, I was setting them in the IDE as mm/dd/yyyy.

What format should I be using?

Thanks,

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Jorge Sousa » 13 Jun 2016 16:15

Hi Aggie

You should use yyyy,mm-1,dd

mind the commas and the mounth-1
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQMMobiScroll2

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.