How can I get the last 2 digits of:
200912
to my object:
$year = $flightDates-&
You could use a basic aritimethic operation, like this...
while ( $var > 100 ) { $var = (int) $var / 10; }
There could be a better solution but this one will fit fine