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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.