Q:

change format data jquery from the long to the shortly

i want get  format data like this 201507280945 not like this Thu May 29 2014 13:50:00 GMT-0400 (Eastern Standard Time)
i put this code
var time = new Date();
i get this Thu May 29 2014 13:50:00 GMT-0400 (Eastern Standard Time)

A:

Get the values individually and do concat.
            var Current = new Date();
            var DD = Current.getDate();
            var MM = Current.getMonth() + 1; //January is 0
            var YYYY = Current.getFullYear();
            var hr = Current.getHours();
            var min = Current.getMinutes();
            var milsec = Current.getMilliseconds();
            and so on.............

