convert string with time in javascript code example Example: convert string time to time in javascript alert (new Date (new Date().toDateString() + ' ' + '10:55'))