I’m trying to grab only the date from a string.
<div class="entry_details">
<i>
<br>
Team: EntryPod Podium
<br>
Created at:
<script type="text/javascript">
<!--//
var d = new Date(1346364356000);
document.write(d.toString());
//--!>
</script>
Thu Aug 30 2012 15:05:56 GMT-0700 (PDT)
</i>
</div>
I want to grab only Thu Aug 30 2012 15:05:56 GMT-0700 (PDT) and store it in a variable
The code I have is
$test = $this->getText("//div[contains(@class, 'entry_details')]");
But it grabs EntryPod Podium Created at: Thu Aug 30 etc…..
Try