Re:how to find day of the week provided from the date

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rajeevm
Participant
Posts: 135
Joined: Sun Jan 22, 2006 10:44 am

Re:how to find day of the week provided from the date

Post by rajeevm »

Hi,

I need your help in finding the day of the week i.e, whether its sunday or monday or tuesday from the date column . I have a column in the source 'Issue_Dt' and I need to load the column in the target by using this
If the Issue_Dt is Sunday and ED_Cd is'01' then I need to append Bto R_ID else if Issue_Dt is not Monday then just pass the same column into the target.

How I find the day from the given date field (yyyy-mm-dd)

I would really appreciate your quicker responses.

Thanks
rajeevm
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There should be a function that returns the 'day of the week' with zero being Sunday, from what I recall.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Check WeekdayFromDate
Post Reply