Page 1 of 1
Min / Max Dates

Posted:
11 Jun 2016 20:45
by Aggie85
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
Re: Min / Max Dates

Posted:
13 Jun 2016 09:47
by Jorge Sousa
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
Re: Min / Max Dates

Posted:
13 Jun 2016 13:27
by Aggie85
Howdy Jorge!
For testing, I was setting them in the IDE as mm/dd/yyyy.
What format should I be using?
Thanks,
Aggie85
Re: Min / Max Dates

Posted:
13 Jun 2016 16:15
by Jorge Sousa
Hi Aggie
You should use yyyy,mm-1,dd
mind the commas and the mounth-1