awk script for date conversion

hi
awk script for dd/mm/yyyy to yyyymmdd
awk script for dd-mon-yyyy to yyyymmdd
awk script for dd-mm-yyyy to yyyymmdd formate
..............urgent.............

Thanks in advanced

please stop to post the same question on multiple threads!

Ok, here's an example, it's up to you now to figure it out and fit it as desired.
And please stop bumping up and double posting questions as a loser or you'll be banned!

echo "01-JUL-2007" | 
awk 'BEGIN {
  FS=OFS="-"
  split("JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC",m,",")
}
{for(i=1;i<13;i++) {
  if($0 == m){$0=sprintf("%02d", i)}}
}1'

Regards