Add number of days from now display with any jQuery UI datepicker.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ExampleSite.html
README.md
dfn.PNG
jquery-ui-daysfromnow.js

README.md

GITHUB PAGE

JQueryUI-Days-From-Now

Add number of days from now display with any jQuery UI datepicker. Days From Now Screenshot

This horrible bloat of a hack is a modification of The JQuery UI Timepicker Add On. Using the aforementioned code, I modified the JQuery UI picker (theme friendly) to show the number of days from the current date. This is useful in situations where a contract is mandated to exist X days from today, instead of knowing a particular date.

Eventually?

The plugin could use the following modifications:

  • Clean up old Timepicker logic that is not used.
  • Pass a parameter to use for date difference base, but have it default to today
  • Use a text box instead of a span, so user can enter number of days and have the date automatically select