Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can i get prior date using <%=odiRef.getSysDate( "MM/dd/yyyy" )%>

Zut AlorsMay 5 2016 — edited May 6 2016

Hello,

I display in an email the current date using <%=odiRef.getSysDate( "MM/dd/yyyy" )%>. This works as planned.  However, at times, I need to display instead the prior day. Is this possible using that ODI call?  I've tried various things such as using a variable defined by a SQL schema below. I then reference variable in the email.  However, This only displays the current date in the email.

  SELECT CONVERT( VARCHAR(10), GETDATE(), 105 ) UNION

  SELECT CONVERT( VARCHAR(10), GETDATE()-1, 105 )

I can create x numbers of variables that pull the correct date, though I would prefer to simply this process.

Any ideas would be appreciated. thanks.

This post has been answered by rpc1 on May 5 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2016
Added on May 5 2016
4 comments
1,035 views