Is it possible to change the max year of datepicker?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Is it possible to change the max year of datepicker?

Post by cishpix »

Hi all,
I want to change the maximum year of datepicker to 2199. As I see AwareIM just support until 2099, is it possible to change it?

Thanks.
Regards,

Suwandy
-----------------
Kisaran - Indonesia
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Is it possible to change the max year of datepicker?

Post by johntalbott »

Try this attribute init script

config.config.max(new Date(2199, 11, 31));

This should allow selection of dates up to 12/31/2199
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Re: Is it possible to change the max year of datepicker?

Post by cishpix »

Thanks John,will try it soon when back to in front of my PC.
Regards,

Suwandy
-----------------
Kisaran - Indonesia
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Re: Is it possible to change the max year of datepicker?

Post by cishpix »

johntalbott wrote:config.config.max(new Date(2199, 11, 31));
Hi John, I have input it into Script of the date attribute but unfortunately it is not works.
Still stuck on 31 Dec 2099.
Any suggestion?

Thanks
Regards,

Suwandy
-----------------
Kisaran - Indonesia
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Is it possible to change the max year of datepicker?

Post by johntalbott »

Oops ... it should be ...

config.config.max = new Date(2199, 11, 31);
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Is it possible to change the max year of datepicker [SOLVED]

Post by cishpix »

Hi John,
it works now. Many thanks for you.
Regards,

Suwandy
-----------------
Kisaran - Indonesia
Post Reply