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

format date field

Status
Not open for further replies.

bodmin

Technical User
Apr 1, 2004
98
GB
I need to output the date field that is stored in the format, dd/mm/yyyy, it needs to be output in the following format yyyymmdd without any punctuation. I have tried to use the format function with the following command,

Print #1, Format(rs("ProducedDate"), yyyymmdd);

but the output remains in the original storage format, any help would be much appreciated.
 
var1=left(date,2)
var2=mid(date,4,2)
var3=right(date,4)

outputdate=var3 & var2 & var3

SOunds too simple?

Telephoto
 
Cheers lupin that fixed I thought it must be something like that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top