Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to add a "/" within my date format (script). Date('01.01.2015', 'MM/YYYY'), but I don't get the expected result. Instead the month is divided by the year.
Can someone help?
Tanks in advance!
Doesn't work for me. When using the variable the value is null
When using LET ReportingMonth = Date(replace(today(),'.','/'),'MM/DD/YYYY'); the result is "6,1670..."
it does work in an expression but not in script
Hi,
U should use set.
Set ReportingMonth = date(date#(MonthStart(Today(),-1)),'MM/YYYY')
And then use as $(ReportingMonth)
Thanks,
Vikram.
Thanks! I used "LET", but it works fine with "SET"
Hi,
if you use "LET" you don't have to use "$" when you want to display the value of the variable.
If you use "SET" yuo must use "$" when you use your variable.
Elena