![]() |
Date Picker and difference
I need two textbox's to become date pickers for me and I need to be able to do these things
1. No be able to pick a date earlier than today (or within 3 days if i set that rule) 2. the second date can not be earlier than the first date. 3. I need to be able to count the difference in days between them. I'm a PHP coder but know very little JavaScript. How can I go about achieving this? |
I just made something very similar to this, so maybe you can use it. It works with jQuery, but in the end I figured it was better than reinventing the wheel.
If you are indeed a kiwi, you will want the date in dd/mm/yy format, which is what this has. If you're not, then I leave it to you to fix as punishment for impersonating one :p Code:
<!doctype html> |
can i show how block dates with 3 or 5 or 7 days from being selected???
|
Quote:
minDate:5, //change this to +3 to start 3 days from now |
| All times are GMT +1. The time now is 09:57 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.