With source as oracle and target as oracle , i am not able to pass the date , its going NULL in the target,
ALSO with INPUT as 12/18/2001 10:10:44 PM and 12/18/2001 10:10:54 PM , how to get the difference in days or in minites.
datetime difference
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 67
- Joined: Thu Apr 06, 2006 7:13 am
datetime difference
Bhaskar Jha
-
- Participant
- Posts: 232
- Joined: Fri Sep 30, 2005 4:52 am
- Contact:
-
- Participant
- Posts: 232
- Joined: Fri Sep 30, 2005 4:52 am
- Contact:
-
- Participant
- Posts: 67
- Joined: Thu Apr 06, 2006 7:13 am
Thanks Anupam, for the solution.
I am looking for the difference in dates , say 12/31/2002 6:00:00 PM and 12/31/2002 6:00:00 PM and 19/31/2002 6:30:00 AM where both r having datatype as timestamp and target is having datatype as NUMBER (here difference will be in MInutes)
Can u plz give the Solution for this.
I am looking for the difference in dates , say 12/31/2002 6:00:00 PM and 12/31/2002 6:00:00 PM and 19/31/2002 6:30:00 AM where both r having datatype as timestamp and target is having datatype as NUMBER (here difference will be in MInutes)
Can u plz give the Solution for this.
Bhaskar Jha
You need to right a custom routine for that. First Iconv the date part from both timestamps, check the difference. If the difference is <> 0 then multiply that with 24*60 to get the minutes diff. in the dates. then Iconv the time part and get the diff. and divide that by 60.
Add the two numbers and thats your difference between the two timestamps.
Add the two numbers and thats your difference between the two timestamps.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
This should help
viewtopic.php?t=85788
viewtopic.php?t=85788
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 232
- Joined: Fri Sep 30, 2005 4:52 am
- Contact:
bhaskarjha wrote:Thanks Anupam, for the solution.
I am looking for the difference in dates , say 12/31/2002 6:00:00 PM and 12/31/2002 6:00:00 PM and 19/31/2002 6:30:00 AM where both r having datatype as timestamp and target is having datatype as NUMBER (here difference will be in MInutes)
Can u plz give the Solution for this.
Using this function you will get number of day , Convert it into minute
Iconv(Arg1[1,10],"D/MDY") - Iconv(Arg2[1,10],"D/MDY")
Thanks,
Anupam
akarmarkar@smart-bridge.co.in