Re: OT: Datum cez JavaScript v HTML

From: Adam Rambousek (rambousek@volny.cz)
Date: 27. 07. 2001, 19:22 CEST


> <SCRIPT language=JavaScript>
> <!--
> dnes=new Date()
> den=dnes.getDate()
> mesiac=dnes.getMonth()
> rok=dnes.getYear()

mesiac=(mesiac<10)?'0'+mesiac:mesiac;
den=(den<10)?'0'+den:den;
document.write(den+'. '+mesiac+'. '+rok);

// -->>
> </SCRIPT>

-- 
Adam Rambousek
rambousek@volny.cz



This archive was generated by hypermail 2.1.2 : 04. 09. 2001, 09:21 CEST