June 18, 2008 at 10:45 am
When I import a dbf file the date field comes in coded...how do I convert DBF date field to sql datefield.
June 18, 2008 at 12:54 pm
What does the date look like when it is imported?
June 18, 2008 at 1:03 pm
I just figure it out. Apparently the apps stores it in Unix Time (UTC.) So I wrote a function to convert it
thanks anyway
June 18, 2008 at 1:04 pm
Can you post a sample and the solution you came up with? This will benifit others who may run into the same problem.
June 18, 2008 at 1:09 pm
no problem...it was very simple once...
CREATE FUNCTION
(
@inputDT int
)
RETURNS datetime
AS
BEGIN
RETURN DATEADD(SECOND, @inputDT, '1/1/1970')
END
GO
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply