Missing Month in Date Format

Hi,

I then have the following code which formats the date, however the oreder_datein month is always 00 e.g. 20/00/09’ (doesn’t matter if I change the format e.g. yy/mm/dd or yyyy/mm/dd it still returns a month of 00 or if I use yy.mm.dd to format :

var indate = forms.lst_datein.datein_date;
order_datein = utils.dateFormat(indate,‘dd/mm/yy’);

I did a display of the indate field and it displays the indate as Wed Nov 11 00:00:00 WST 2009

Any suggestions, seems to me it’s a bug and it can’t format the date properly (the date is stored in a mySQL table) ?

Thanks.

Formatting dates is pretty much standardized in many languages.
The ‘mm’ should be ‘MM’…

Here is some more documentation, Java specific http://java.sun.com/j2se/1.4.2/docs/api … ormat.html !