Solved

VBscript Question

Posted on 2004-09-02
2
155 Views
Last Modified: 2010-05-02
I hope someone can give me a quick answer.

I'm writing a .vbs file to replace a dos batch file. I'm needing to grab the date and have it in the format of YYYYMMDD and include the 0's like today would be 20040902

Thanks
0
Comment
Question by:shook81
  • 2
2 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 11968372
x = Format(now, "YYYYMMDD")
0
 
LVL 32

Expert Comment

by:Erick37
ID: 11968404
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now