Check if a string match the curret houer of time, then add a ID : I have a list of task starting with the time and then the task description.

example `<li><span>11:00</span><p>task description</p></li>`

How do i use javascript to check if the string inside span match the current hour of time and then add a ID to the span if the hour (not minute only hour) match.