I have a two time tags in my code . I have to simply get text inside second time tag.
var children=document.getElementByClassName("entry-date published").textContent;
document.write(children);
<time class="updated" datetime="2022-09-14T00:54:04+05:30" itemprop="dateModified">14th September 2022</time>
<time class="entry-date published" datetime="2022-02-09T18:35:52+05:30" itemprop="datePublished">9th February 2022</time></span> <span class="byline">