ist bestimmt richtig, aber es soll mir ja nicht das Datum, sondern die Zahl
zur�ckliefern.
<% a = "37204"
this = DatePart("d", a-1) & "." & DatePart("m", a-1) & "." &
(DatePart("yyyy", a-1) +1)
Response.write this & "<br>"
atag = day(this)
amonth = month(this)
ayear = year(this)
alles = "#" & amonth & "/" & atag & "/" & ayear & "#"
Response.write (cdbl(#11/8/2002#)) ' liefert die Zahl
'Response.write (cdbl(alles)) ' Variable tuts net.
%>
Gr��e, Gudula
----- Original Message -----
From: "Hubert Daubmeier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 9:39 PM
Subject: RE: AW: [Coffeehouse] OT: Freitagnachmittag
Hab ich da eine interessante Diskussion verpasst? Gerade eine Woche
Virenwarnungen und sonstige Meldungen entsorgt.
> setze ich aber die Variable ein, kommt ein Kompilierungsfehler.
Ist ja logisch ;-)
Ein konstanter Text: "Hallo Welt"
Ein konstanter Wert: 123
Ein konstantes Datum: #12/31/2003#
Ein konstanter Wahrheitswert: true
Und was ist das "#12/31/2003#" ?
Text (egal ob Konstante oder Variable)
Es bleibt das altbekannte: willst ein Datum produzieren nimm die
Datumsfunktion. DateSerial ist Dein Freund. Zur Not wenn Dir gar nix mehr
einf�llt tut es auch Cdate - halt mit h�herem Risiko.
--
Best Regards
Hubert
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gudula Schwingenheuer
Sent: Friday, September 26, 2003 9:34 PM
To: [EMAIL PROTECTED]
Subject: Re: AW: [Coffeehouse] OT: Freitagnachmittag
Hallo
> WScript.Echo cdbl(#11/9/2001#) + 1
dies bringt die Sache schon etwas n�her, wobei die Ausgabe f�r
<[EMAIL PROTECTED]"VBSCRIPT" CODEPAGE="1252"%> <% a = "37204"
this = DatePart("d", a-1) & "." & DatePart("m", a-1) & "." &
(DatePart("yyyy", a-1) +1) Response.write this & "<br>"
atag = day(this)
amonth = month(this)
ayear = year(this)
alles = "#" & amonth & "/" & atag & "/" & ayear & "#"
'Response.write cdbl(#11/8/2002#)
Response.write cdbl(alles)
%>
ergibt
8.11.2002
37568
setze ich aber die Variable ein, kommt ein Kompilierungsfehler.
Gr��e, Gudula
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse