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

Change Date Format

Status
Not open for further replies.

NorthStarDA

IS-IT--Management
Mar 16, 2004
614
US
Hi,

Does anyone know how I can use a calculation to change a Date field into a format like 'YYYY-MM-DD' so I can import into an SQL database using ExecuteSQL?
 
figured it out:

Year(date_created) & "-" & Right("00" & Month(date_created), 2) & "-" & Right("00" & Day(date_created), 2)

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top