Jump to content

jesruiz

New Members
  • Posts

    2
  • Joined

  • Last visited

jesruiz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Fixed it, thanks for the initial start! // Check time var currentdate = new Date(); var hour = currentdate.getHours(); var mintues = currentdate.getMinutes(); // if time is after 11:30 change start date. if ((hour*60 + mintues) >= 690) { currentdate.setDate(currentdate.getDate() + 2); $( "#delnote" ).datepicker( "option", "minDate", currentdate); }
  2. I've been googling for a few hours and just stumbled upon this. It works great for me but how could I modify it to target a time with minutes like 11:30. Here's what I have but it's not working out so well. // Check time var currentdate = new Date(); var hour = now.getHours(); var mintues = now.getMinutes(); // if time is after 11:30 change start date. if ((hour*60 + mintues) >= 690) { currentdate.setDate(currentdate.getDate() + 2); $( "#delnote" ).datepicker( "option", "minDate", currentdate); } Thanks, Jesse
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.