Hi all
I am trying to extract DD, MM, YYYY from input date field in a FORM formatted as DD/MM/YYYY upon user change. The field default input value is current_date. I am new to javascript, so I found some helpful posts to get this information using var new date function, but I need to get the right values when User fills the form selecting another date rather than current date.
Here is my start
$(document).ready(function() {
var d = new Date();
var YYYY = d.getFullYear();
var YY = YYYY.toString().substring(2);
var MM = ("0" + (d.getMonth() + 1)).slice(-2);
var DD = ("0" + d.getDate()).slice(-2);
});
Thanks for any help