Created
June 18, 2016 05:59
-
-
Save chaitu87/fc9501c45827a780d0f07d8cace9e467 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(function() { | |
$('#datepick').datetimepicker({ | |
inline: true, | |
format: 'DD/MM/YYYY', | |
minDate: moment().format() | |
}).on('dp.change', function(e) { | |
// Clicking the date | |
console.log(e.date); | |
var cdate = moment(e.date).format('Do MMM YYYY'); | |
console.log(cdate); | |
$('#selectedDate').text('on ' + cdate); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment