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