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

using date format 1

Status
Not open for further replies.

Serpno11

Programmer
Jul 11, 2001
6
0
0
US
I have imported date fields that are numbers with YYYYMMDD format.

What function and what is its syntax (parameters) can I use to convert it to a date field or value?

I want to be able to add 7 and 14 days to the resulting field or value.
 
Go into the MS Access help menu and search for "DateAdd". That should give you all the answers you need.
 
Anubis3000,

Thanks for your prompt reply. I am familiar with the DATEADD fcn, but my problem is that the data are numeric where today is the equivalent of 20,050,207. How do I get that into a true date format? Can I convert it to a STR then use another function? Thanks again for all your help!!
 
A starting point:
DateSerial(Left(theField, 4), Mid(theField, 5, 2), Right(theField, 2))

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

Part and Inventory Search

Sponsor

Back
Top