• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Restrict Date Picker to Current Month only?

Restrict Date Picker to Current Month only? 9 years 6 months ago #32883

  • djaber2000
  • djaber2000's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 3
I am trying to limit the Calendar selections to the Current month only. (in October, users can only select an October Date, in November they can only select a November date, etc..). I want this to be automatic, without having to hardcode the dates, and change the script every time the month changes.

I am placing the code below in the Min and Max fields, but cant get it to restrict selections for the current month only.

//<code>
return date('m');
//</code>

It works for restricting a specific day if I use (m/d/Y), but not having much luck for the entire current month.

Thank you for any help or assistance.
Last Edit: 9 years 6 months ago by djaber2000.
The administrator has disabled public write access.

Restrict Date Picker to Current Month only? 9 years 6 months ago #32892

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
You are on the right track... You will have to return the minim date not just the month.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!