How can I get the last 2 digits of:
200912
to my object:
$year = $flightDates-&
convert it to string. then take the first two element.
In java you can do this by following code. Let the variable is an integer named x . then you can use
byte[] array= Integer.toString(x).get.bytes().
Now array[0] and array[1] is the first two digits. array[array.length-1] and array[array.length] are the last two.