mrreds
12th September 2010, 17:55
Hi,
How can I validate two dates?
The first date is today using date.num, but it is retrieving 6 chars
The second one is coming from a SQL.
I need to validate the vigency of a line BOM according Effective Date (tibom010.t$indt) and Expery Date (tibom010.t$exdt)
todaydate = date.num()
select *
from tibom010
where
tibom010.mitm = :tcibd001.item
and todaydate > t$indt
and todaydate < t$exdt
I think that the SQL logic is okay, but date.num() has 6 chars and t$indt has 10 chars.
How can I include the time in my validation?
1197612000 vs 734027
How can I validate two dates?
The first date is today using date.num, but it is retrieving 6 chars
The second one is coming from a SQL.
I need to validate the vigency of a line BOM according Effective Date (tibom010.t$indt) and Expery Date (tibom010.t$exdt)
todaydate = date.num()
select *
from tibom010
where
tibom010.mitm = :tcibd001.item
and todaydate > t$indt
and todaydate < t$exdt
I think that the SQL logic is okay, but date.num() has 6 chars and t$indt has 10 chars.
How can I include the time in my validation?
1197612000 vs 734027