Hi all,
Is there any function that can be used to calculate Yesterday's date of datatype Timestamp?
I tried giving CurrentTimestamp()-1 but when i compiled it shows the error as :
"Invalid conversion requested from a dfloat to a timestamp".
Actually i have to give constraint in the transformer as "X >= 'yesterday's date" where the column X is of datatype timestamp.
And also there is no iconv,oconv fucion in Parrallel Jobs.
Please help me in this regard.
Thanks in advance.
To calculate Yesterdays date(Timestamp).
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 7
- Joined: Sat Sep 09, 2006 7:01 pm
- Location: Jersey
Re: To calculate Yesterdays date(Timestamp).
Try this
In transfomer, in the column defination
DateFromJulianDay(JulianDayFromDate(CurrentDate)-1)
Thanks
In transfomer, in the column defination
DateFromJulianDay(JulianDayFromDate(CurrentDate)-1)
Thanks
Subhasree wrote:Hi all,
Is there any function that can be used to calculate Yesterday's date of datatype Timestamp?
I tried giving CurrentTimestamp()-1 but when i compiled it shows the error as :
"Invalid conversion requested from a dfloat to a timestamp".
Actually i have to give constraint in the transformer as "X >= 'yesterday's date" where the column X is of datatype timestamp.
And also there is no iconv,oconv fucion in Parrallel Jobs.
Please help me in this regard.
Thanks in advance.
-
- Participant
- Posts: 7
- Joined: Sat Sep 09, 2006 7:01 pm
- Location: Jersey
Re: To calculate Yesterdays date(Timestamp).
Try this
In transfomer, in the column defination
DateFromJulianDay(JulianDayFromDate(CurrentDate)-1)
Thanks
In transfomer, in the column defination
DateFromJulianDay(JulianDayFromDate(CurrentDate)-1)
Thanks
Subhasree wrote:Hi all,
Is there any function that can be used to calculate Yesterday's date of datatype Timestamp?
I tried giving CurrentTimestamp()-1 but when i compiled it shows the error as :
"Invalid conversion requested from a dfloat to a timestamp".
Actually i have to give constraint in the transformer as "X >= 'yesterday's date" where the column X is of datatype timestamp.
And also there is no iconv,oconv fucion in Parrallel Jobs.
Please help me in this regard.
Thanks in advance.
-
- Participant
- Posts: 7
- Joined: Sat Sep 09, 2006 7:01 pm
- Location: Jersey
Re: To calculate Yesterdays date(Timestamp).
Try this
In transfomer, in the column defination
DateFromJulianDay(JulianDayFromDate(CurrentDate)-1)
Thanks
In transfomer, in the column defination
DateFromJulianDay(JulianDayFromDate(CurrentDate)-1)
Thanks
Subhasree wrote:Hi all,
Is there any function that can be used to calculate Yesterday's date of datatype Timestamp?
I tried giving CurrentTimestamp()-1 but when i compiled it shows the error as :
"Invalid conversion requested from a dfloat to a timestamp".
Actually i have to give constraint in the transformer as "X >= 'yesterday's date" where the column X is of datatype timestamp.
And also there is no iconv,oconv fucion in Parrallel Jobs.
Please help me in this regard.
Thanks in advance.