Posted by Chan Yen Jet on August 25, 1998 at 00:45:22:
Below are my code, in order to display my
document.lastModified in the dd/mm/yyyy format.
var modiDate = new Date (document.lastModified)
var lm-month = modiDate.getmonth () + 1
var lm-day = modiDate.getDate ()
var lm-year = modiDate.getYear () + 1900
var showDate = lm-day + "/" lm-month + "/" + lm-year
document.writeln ("<BR><I>Last revision: " + showDate)
The script seems not working at the first line, because I put a alert () function after each line of them.
Can anyone show me what's wrong with the code ?
Thanks a lot ...