You need to anchor your second XPath to look 'below' the h4
:
Dim date1 As HtmlNode = h4.Parent.SelectSingleNode(".//span[starts-with(@class, 'date ')]")
^^^^^^^^^ ^^^
The .//
tells Xpath to look under the node the Xpath is executed on. Thus by calling SelectSingleNode
on the h4.Parent
you get the date below the parent div
tag of the h4
.