well this is a hack - but it should work:
<?
$string = '0900_something_something.txt';
for($i = 0 ; $i < 2 ; ++$i){
$dateA .= $string[$i];
}
for($i = 2 ; $i < 4 ; ++$i){
$dateB .= $string[$i];
}
echo $dateA.'-'.$dateB;
?>
I double checked this and it worked 😮)