Skip to content
It makes working with jQuery UI Datepicker and Rails a breeze.
CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
double_date.coffee
double_date.js

README.md

DoubleDate

DoubleDate makes working with jQuery UI DatePicker and Rails a breeze. It allows you to format the date when displaying it to the user in the format of your choosing while submitting it in the format of your server's choosing. DoubleDate is written in CoffeeScript but a plain Jane JavaScript version is included as well.

Dependencies

  • jQuery UI Datepicker (and therefore jQuery)

Installation

  1. Download your flavor (JS or Coffee) and include it in your app

Usage

new DoubleDate(
  el: $("input.your_date_input")
)

Options (defaults shown)

new DoubleDate(
  dateFormat: "mm/dd/yy"
  altFormat: "yy-mm-dd"
)
Something went wrong with that request. Please try again.