Javascript
:I have a function which has s parameter s contains this s=07:05:45PM;
s has time which is in form of string i want to use it in new Date()
but gives error i had to get hours mins seconds convert this time to 24 hour format please help me output:invalid date
function time Conversion(s) {
var date=new Date(s);
console.log(date);
}