Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change a file's creation date? 1

Status
Not open for further replies.

davejazz

Programmer
Nov 3, 2000
42
US
If I create a text file today ... how can I change the date of it's creation such that the FileDateTime function returns a date of yesterday or last year within visual basic?
 
Thanks for your quick response.

I'll check it out this weekend.

Dave
 
The Tip worked well! I just had the change the format string from "DD-MM-YY" to "MM-DD-YY" to match the way my system stores dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top