Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / October 2007

Tip: Looking for answers? Try searching our database.

convert AS400 date 1071101 to date 11/01/2007 mm/dd/yyy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dirty70Bird - 31 Oct 2007 20:04 GMT
Hello, is there a way to convert the AS400 date 1071101 where 107 = 2007, 11
is month, 01 is the day?  I'm attempting to use the Format function TDate:
Format([AS400DATE],"??????????")  TIA!!!
Dirty70Bird - 31 Oct 2007 20:46 GMT
This appears to work..
Date: DateSerial(Left([SCEDAT],3)-100,Mid([SCEDAT],4,2),Right([SCEDAT],2))

> Hello, is there a way to convert the AS400 date 1071101 where 107 = 2007, 11
> is month, 01 is the day?  I'm attempting to use the Format function TDate:
> Format([AS400DATE],"??????????")  TIA!!!
Douglas J. Steele - 31 Oct 2007 22:00 GMT
Or

Date: DateSerial(Mid([SCEDAT],2, 1),Mid([SCEDAT],4,2),Right([SCEDAT],2))

Of course, you may run into problems if the year is greater than 2029.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> This appears to work..
> Date: DateSerial(Left([SCEDAT],3)-100,Mid([SCEDAT],4,2),Right([SCEDAT],2))
[quoted text clipped - 4 lines]
>> TDate:
>> Format([AS400DATE],"??????????")  TIA!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.