HighDots Forums  

Datum

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Datum in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: Datum - 10-14-2004 , 06:06 PM






Jochen Schneider wrote:

Quote:
wie kann ich zu einem Ausgelesenen Datum einen Tag dazu rechnen. Also bei
2004-12-31 plus ein Tag sollte dann 2005-01-01 herauskommen.
new Date(2004, 11, 31 + 1)

Das hatten wir aber hier schon mehrfach, Google ist Dein Freund. [psf 6.1]


PointedEars
--
Die unüberbietbare Frechheit der Jugend unseres Jahrhunderts
ist ein sicheres Zeichen für das Herannahen des Jüngsten Gerichts.
-- Sokrates (469-399 v.u.Z.)


Reply With Quote
  #2  
Old   
Jochen Schneider
 
Posts: n/a

Default Datum - 10-15-2004 , 01:12 PM






Hallo,

wie kann ich zu einem Ausgelesenen Datum einen Tag dazu rechnen. Also bei
2004-12-31 plus ein Tag sollte dann 2005-01-01 herauskommen.

Danke

Jochen



Reply With Quote
  #3  
Old   
Dr John Stockton
 
Posts: n/a

Default Re: Datum - 10-15-2004 , 01:52 PM




Quote:
wie kann ich zu einem Ausgelesenen Datum einen Tag dazu rechnen. Also bei
2004-12-31 plus ein Tag sollte dann 2005-01-01 herauskommen.
Von Jochen Schneider <markus (AT) tettnanger (DOT) com> in <ckmfm6$mog$01$1 (AT) news (DOT) t-
online.com>, Fri, 15 Okt 2004 20:12:49, in news:de.comp.lang.javascript.


D = new Date("2004/12/31") // D deiner Date-Objekt ist

D.setDate(D.getDate() + 1) // Gut Datum += 1
D.setTime(D.getTime() + 864e5) // Böse Datum += [0,1,2]

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.