Re: OT: Datum cez JavaScript v HTML

From: petr.novak@vitana.cz
Date: 27. 07. 2001, 19:09 CEST


dnes=new Date()
den=dnes.getDate();if (den<=9) {den="0"+den;}
mesiac=dnes.getMonth()
rok=dnes.getYear()
document.write(den + '.');
if (mesiac == 0 ) {document.write('1')};
if (mesiac == 1 ) {document.write('2')};
if (mesiac == 2 ) {document.write('3')};
if (mesiac == 3 ) {document.write('4')};
if (mesiac == 4 ) {document.write('5')};
if (mesiac == 5 ) {document.write('6')};
if (mesiac == 6 ) {document.write('7')};
if (mesiac == 7 ) {document.write('8')};
if (mesiac == 8 ) {document.write('9')};
if (mesiac == 9 ) {document.write('10')};
if (mesiac == 10) {document.write('11')};
if (mesiac == 11) {document.write('12')};
document.write('.' + rok);



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