$picker = $(".date-news");
$picker.datepicker({
dateFormat: 'dd:mm:yyyy',
onRenderCell: function(date, cellType) {
//var currentDate = date.getDate();
},
onSelect: function(fd, date) {
if (date) {
const [day, month, year] = fd.split(':');
console.log(day);
}
}
});