Hello everyone I’m trying to get variables separately from date picker with using date format. I want to get these variables date,month and year but how?
Here is my script
<script type="text/javascript">
$(function () {
$('.date').datepicker({ dateFormat: 'dd.MM.yy' });
});
</script>
To get date from datepicker you should use
$(".date").datepicker("getDate").Code:
Hope this helps!