If you want to have the special date operations with MySQL, you will have to live with our screwy date structure.
But, the way the date is stored doesn't (or shouldn't) matter, as long as you can extract the date in the Israeli fashion, correct?
So, keep the date in your favorite format until it goes to MySQL, then let it be stored using the American method. When you extract it, use something like Matto suggested to convert it back to the "right" way. Understand?
In your program:
$date = "dd/mm/yy";
// it's in the right format, so you can use it as you please
echo $date."<BR>";
$mysql_st = "INSERT INTO datetable(date) VALUES($date)";
$mysql_rs = mysql_query($mysql_st);
$getdate_st = "SELECT * FROM datetable WHERE AutoID = 5";
$getdate_rs = mysql_query($getdate_st);
$getdate_ar = mysql_fetch_array($getdate_rs);
// now, in the $getdate_ar variable, the date field is Americanized - which is good - except for people who don't like our date structure. So, use the code matto suggested:
$date = date('d/m/y', strtotime(substr($getdate[date],5,2) . '/' . substr($getdate[date],8,2) . '/' . substr($getdate[date],0,4)));
// if all has gone well, $date should be in the "proper" format.
//-Ben