feesjah
Legacy Member
CREATE FUNCTION ExtractDate(@DelDate int(10))
RETURNS DateTime
AS
BEGIN
declare @unixDate int(10)
declare @days int(10)
@unixdate = 25569
@days = @DelphiDate-@unixDate
IF @days < 0
Set @days = 0
@return = DATEADD(day, @days, '01/01/1970')
return @return
end
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@DelDate as int(10)) RETURNS DateTime AS BEGIN declare @unixDate int(10) de' at line 1
snelle hulp wordt geapprecieerd.
thanks in advance
RETURNS DateTime
AS
BEGIN
declare @unixDate int(10)
declare @days int(10)
@unixdate = 25569
@days = @DelphiDate-@unixDate
IF @days < 0
Set @days = 0
@return = DATEADD(day, @days, '01/01/1970')
return @return
end
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@DelDate as int(10)) RETURNS DateTime AS BEGIN declare @unixDate int(10) de' at line 1
snelle hulp wordt geapprecieerd.
thanks in advance
