Quantcast
Viewing all articles
Browse latest Browse all 2544

RE: TDP 4.2 Set Variable with date into string

I did a test in my environment (MS Sql Server).  Same problem.  selectconvert(varchar(10), getdate(), 101) cdate gives me the result '07/06/2017' which is what #VROD.cdate# holds.  When I try to set my Test variable to that I get the divided number. 

Try something like this as workaround:

select'R'+convert(varchar(10), getdate(), 101) cdate

result into VROD  (for Oracle use || intead of + to concatonate and To_char instead of Convert)

Then set the Test variable to:

Replace('#VROD.cdate#', 'R')

The single quotes are needed or it does not work.  Good luck,


Viewing all articles
Browse latest Browse all 2544

Trending Articles