<?xml version="1.0" encoding="ISO-8859-1"?>
<slide>
	<title>Parsing Dates</title>

	<blurb>Parsing strings for date time information:</blurb>
	<example><![CDATA[<?php
  $dt = new DateTime("2018-03-08 08:43:57");
?>]]></example>
<break/>

	<blurb>This function will *not* return the timestamp as an integer, but
	instead returns a DateTime object, which you can access (as string)
	through:</blurb>
<break/>

	<example result="1"><![CDATA[<?php
  $dt = new DateTime("2018-03-08 08:44:12");
  echo $dt->format( 'U' ), "\n";
?>]]></example>
<break/>

	<blurb>The DateTime class is what you can do the really cool things
	with.</blurb>
	
</slide>
