Vote count: 0
I'm getting the data from the jquery datepicker plugin. This is the exact date that I'm getting: Thu Apr 02 2015. How do I format it into this: 20150402 ??
I've tried some things but nothing is working so far. This is my code so far:
$("#button").click(function(){
var datum = $("#datepicker").datepicker("getDate");
console.log(datum);
});
asked 1 min ago
Format datepicker date to YYYYMMDD
Aucun commentaire:
Enregistrer un commentaire