'VisualBasicValue '1' Compilation Error

Hi,
I’m trying to get the first day and the last day of the previous month. I am using assignment event but getting compilation error. I have used this method many times but first time I get compile error

Thank you.

Hi @makboga

For the start date could you type exactly as below

New DateTime(Now.Year,Now.Month,1).AddMonths(-1).ToString("dd.MM.yyyy")

@makboga

It is the error with you inverted comma…please replace them In the code again…

“ is wrong " is correct

That should solve the issue

Cheers

@makboga

Have you copied, paste the same Assign activity? If so It’s better to drag a new Assign activity and give the expression again

If this is not the case, then change the double quotes and that would be fine, below post for your reference

Hope this may help you

Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.