?
Solved

VBscript Question

Posted on 2004-09-02
2
Medium Priority
?
165 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 2000 total points
ID: 11968372
x = Format(now, "YYYYMMDD")
0
 
LVL 32

Expert Comment

by:Erick37
ID: 11968404
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

839 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