Page 2 of 2

check it

Posted: Wed Oct 22, 2003 2:44 am
by itsmani1
Wel i think it will work definately ................

Code: Select all

<?php

<?php
if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
    echo "$regs[3].$regs[2].$regs[1]";
} else {
    echo "Invalid date format: $date";
}
?>

?>

In the Memory of my best friend Aamir Idrees Iqbal
Who is not in this World
:(