I have an editable Gridview with columns as below:
$(function () {
$('.DateTimePicker').datepick({ dateFormat: 'dd MM yyyy' });
});
It means it will hit once time. Try to use forEach function Like this:
$(function () {
$('.DateTimePicker').each(function () {
$(this).datepick({ dateFormat: 'dd MM yyyy' });
});
//$('.DateTimePicker').datepick({ dateFormat: 'dd MM yyyy' });
});