Iconv and Oconv
Posted: Thu Sep 01, 2005 1:16 pm
I need to calculate the difference between two dates in the transformer
stage.
x = end_date - start_date
But there is some considerations:
- I need the difference in days
For example: x = 2005-05-12 - 2005-30-12
then x = 25
- the end_date is 'YYYY-MM-DD'
For example: 2005-05-12
- the start_date is 'YYMMDD' like a integer
For example: 050512 but how like a integer then 50512 because the 0 it disappears.
I'm trying to use Iconv and Oconv but I'm need help.
Can any one help me?
Regards,
Fernando Martins
stage.
x = end_date - start_date
But there is some considerations:
- I need the difference in days
For example: x = 2005-05-12 - 2005-30-12
then x = 25
- the end_date is 'YYYY-MM-DD'
For example: 2005-05-12
- the start_date is 'YYMMDD' like a integer
For example: 050512 but how like a integer then 50512 because the 0 it disappears.
I'm trying to use Iconv and Oconv but I'm need help.
Can any one help me?
Regards,
Fernando Martins