How can I get the last 2 digits of:
200912
to my object:
$year = $flightDates-&
For numbers, you could use php's modulo function (http://php.net/manual/en/internals2.opcodes.mod.php):
departureDate->year; echo $year % 100; ?>