hey guys l've been working with CSV files and some of them contain dates and now l want to store them in the database but there is a problem l'm facing.
l have a date like this: 10-Feb-2016 and l it to be like this: 10-02-2016
but so far l've been trying to use the date.parse function of which is giving some different things here is my code that l have tried to use
var d = '13-jan-2016';
var e = Date.parse('13-jan-2016')
var m = new Date( e).toISOString()
console.log(m)
l have also tried to use the split function but there is still some digit that l don't understand of why they are there or its my lack of understanding when it come to the parse() function in javascript