<div id="divEvents">
<ul class="News_Title_Link">
<li style="line-height:20px"><a href="/article/us-asia-storm-japan-idUSKBN1AO09Y" title="Now a tropical storm, Noru rakes Japan's main island">Now a tropical storm, Noru rakes Japan's main island</a> (21/03/2017 12:11)</li>
<li style="line-height:20px"><a href="/article/us-southkorea-military-idUSKBN1AO0C9" title="South Korea's Moon taps Air Force chief to head Joint Chiefs of Staff">South Korea's Moon taps Air Force chief to head Joint Chiefs of Staff</a> (18/03/2015 17:16)</li>
I use jsoup to get the date and time, ex :"21/03/2017 12:11" but the output is "South Korea's Moon taps Air Force chief to head Joint Chiefs of Staff (17/03/2017 17:16)".
Here is my code
Document doc = Jsoup.connect(url).get();
Element time = doc.select("li").get(1);
String text = time.text();
Can anyone help to fix the code to get only date and time.
Thank you.
time.ownText()so as not to get the text of the sub-elements?