Formatting Date values

Hi,

I need to format some date values. But unfortunately, when I format the date, the date seems to change!
I tried the following;

utils.dateFormat(date_value,‘m/d/yyyy h:MM’)
and i get the value 5/4/2008 2:07

but the value of ‘date_value’ without any formatting is
Fri Jul 04 14:05:38 IST 2008!!!

Does anyone have a solution to this?

Regards,
Hareendra

switch the lowercase m (minutes) with the uppercase M (month) and you are fine :)

Thanks! Now its ok :)