on one site which i want to grab, i have a format date and time like this:
<div id="date">11 october 2010 <span>|</span> 21:43</div>
at first i want to split the time and date in two variables, and after this push it to my table in my mysql.
as well as i need to change the format date in smth like this: 2013-05-10
now i have only this:
String date = (driver.findElement(By.id("date"))).getText();
how can i split and change format of this?