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

SQL Formatting of Date

Status
Not open for further replies.

HRISUser

Technical User
Nov 29, 2005
14
US
I am trying to convert a date that is currently stored as a timestamp to a string but I need to have it come back in the following format YYYYMMDD. Right now I am using the following
CStr ({Table.Field}) this converts the field to a string but doesn't report it in the correct format.
Any help would be greatly appreciated.
Thanks
 
Have a look at the Format function:
Format(Table.Field, "yyyymmdd")

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

Part and Inventory Search

Sponsor

Back
Top