alexleung
16th June 2008, 06:10
Hi all,

i use actual delivery date minus plan delivery date,
(tdpur406.ddte - tdpur401.ddta )

i only want date count,time ont join

have what means time(2008-05-09 23:59) Conversion (2008-05-09 00:00)

pls help me

alexleung
16th June 2008, 06:12
or delete time

kiran kumar
16th June 2008, 07:50
hi plz convert the dates into local time with "utc.to.local" function.after getting values substract and convert to utc.to.local. it'll work. all the best.

alexleung
18th June 2008, 10:58
Pls Help me. UP

wiggum
18th June 2008, 12:02
You have to convert the utc values to date values:

utc.to.date(tdpur406.ddte, year1, month1, day1, dummy, dummy, dummy)
utc.to.date(tdpur401.ddta, year2, month2, day2, dummy, dummy, dummy)

Now calculate the days:

date.to.num(year1, month1, day1) - date.to.num(year2, month2, day2)

alexleung
20th June 2008, 12:01
HI wiggum, Thanks for you help! OK!