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