hey, i have a variable which contains a date in a special format (20011230 ==> YYYYMMDD). And I want to change it in 30.12.2001 or something like that.
<?php ereg ("([0-9]{4})([0-9]{1,2})([0-9]{1,2})", $yourdatevariable, $regs); $newdatevariable = "$regs[3].$regs[2].$regs[1]"; echo $newdatevariable; ?>