Below is the HTML DOM, I want to store DatePlannedStartTimeStamp value "01/24/2017 18:00" in a variable, print and call later
<TD class=dbData><SPAN onmouseover="ShowDay(this.innerHTML, 231320)"
onmouseout=nd() id=DatePlannedStartTimeStamp>01/24/2017 18:00</SPAN></TD>
I tried below but it does not return any value
$HTML = Invoke-WebRequest -Uri $URL -UseDefaultCredential
$WebPageText = ($HTML.ParsedHtml.getElementsByTagName("a") | Where-
Object{$_.ID -match "DatePlannedStartTimeStamp"}).innerText
echo $WebPageText
Not sure if my tagname is correct. I'm still learning powershell script, it would be great help if there is a way to it.