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!

Date formatting for upload 1

Status
Not open for further replies.

jaw5

ISP
Apr 15, 2008
7
US
I have a date formatted as mm/dd/yyyy date in a database and I need to extract it for an upload. How do I extract it as an 8 character numeric field? I've tried extracting the year,month,day - but when I try and concantenate, I get a sum rather than a string. HELP!!!!
 
Functions like MONTH() and YEAR() will return an integer; you'd either need to convert such to strings before concatenating them prior to reversion or multiply them before addition (i.e. YEAR(date)* 10000 + MONTH(date)*100 + DAY(date) will give you yyyymmdd numeric date)

soi la, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top