Link to home
Start Free TrialLog in
Avatar of mdiglio
mdiglioFlag for United States of America

asked on

vbscript date

Hello,
I can't seem to work this out using vbscript,
I am trying to enumerate a text file that is formatted like this
groupname,folder,6/6/06,7/1/06

I am using the split function and I want to do something like this:
If Myarr(2) or Myarr(3) = today then do something

right now I have something like this:
t = Date
If Myarr(2) = t then
 msgbox "today"
end if

I can make the 2 date entries any format that makes it easier for you;
20060606,6/6/06,06/06/06

if I use VB6 it works but I would like to keep it in vbscript

Thanks for any help you can give me
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mdiglio

ASKER

Thank You
Works great!
mdiglio,

You're most welcome :)

Regards,

Patrick