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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unusual date format

Status
Not open for further replies.

Nomad0803

Programmer
Joined
Dec 15, 2006
Messages
7
Location
US
I'm trying to display a date that is 1 month prior to the current date - i.e., today's date is 3/21/2007 and I want to display 2/21/2007 in that format.

I tried DatePart("m",Now()) & DatePart("d",Now()) & DatePart("y",Now()), but the date displayed is 5/18/1988.

Thanks in advance,
Nomad0803
 
I don't see a way to delete this post, so I'll just report that I've found a solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top