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