Thread: Date
View Single Post
Old 06-25-2009   #5 (permalink)
Pegasus [MVP]


 
 

Re: Never mind


"Larry" <larry328NOSPAM@xxxxxx> wrote in message
news:%230n5paV9JHA.1340@xxxxxx
Quote:

>I got it, very simple:
>
> Wscript.Echo MonthName(Month(Now())) & " " & Day(Now()-1)
This does not really work since you will have serious problems on days such
as 1 July or even worse, on 1 January. Fortunately cscript has a full set of
date arithmethic functions such as DateAdd or DateDiff. I recommend you
download the helpfile script56.chm from the Microsoft site to see how
they're used.


My System SpecsSystem Spec