Created
April 14, 2015 04:32
-
-
Save IamNaN/e6cd2e9611c19f7933fc to your computer and use it in GitHub Desktop.
Hack to get bootstrap datetimepicker to accept US formatted date/time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('form').submit (event) -> | |
$(this).find('.datetime').each -> | |
$(this).val moment(new Date($(this).val())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment