TOPIC:

Error while creating DatePicker 5 months 2 weeks ago #256864

  • Topic Author
  • Mister.Miracle
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 136
  • Karma: 1
  • Thanks: 1
I want to create the min-value = today.
How can i create this min: today?

i tried:
<script type="text/javascript">	
    JQuery(document).ready(function () {                             
        JQuery("#ff_elem61_calendarButton").pickadate({
			format: "dd.mm.yyyy", 
			min: new Date(today),
			max: new Date(2022, 11, 31),
			selectMonths: true,
			selectYears: 2,
			firstDay: 1,
			onSet: function() {JQuery("#ff_elem61").val(this.get("value"));}
		});
    });
</script>

i could also create
today=new Date(today);
year = year(today);
month = month(today);
day = day(today)
and work with it... but i make mistake while trying :-)

Please Log in or Create an account to join the conversation.

Error while creating DatePicker 5 months 2 weeks ago #256876

  • Topic Author
  • Mister.Miracle
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 136
  • Karma: 1
  • Thanks: 1
i works.
i got it by trying :-)
var today = new Date();
var year = today.getFullYear();
var month = today.getMonth();
var day = today.getDate();
this i can use while min and max like this
min: new Date(year, month, day);

Please Log in or Create an account to join the conversation.

Error while creating DatePicker 5 months 2 weeks ago #256894

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6920
  • Karma: 3
  • Thanks: 493
Hi,

super!

I am glad you find a solution for this :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.046 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!