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!

DateTime

Status
Not open for further replies.

zishan619

Programmer
May 28, 2003
284
MX
How do i create a timestring with date time and the time being in military time.
So far I have
TAS_" & year(date())& month(date())& day(date()) & ".xls"
But I need it to say 20040211_14:35:37
 
Have you tried something like this ?
Year(Date) & Right("0" & Month(Date), 2) & Right("0" & Day(Date), 2) & "_" & Time

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top