Hi,
Can someone help me with the below?
End of statement expected?
Thanks!
Hi,
Can someone help me with the below?
End of statement expected?
Thanks!
Hi there,
Count the brackets, more brackets have been opened and lesser number are closed.
Also if you want further help post it as a text instead of image
Please see text.
New Datetime(now.year,
now.Month,
Not (New Datetime(now.year,now.addmonth(1),1).Day)+3)).Dayofweek.ToString.ToUpeer.Equals(“SUNDAY”)
Or
Not (New Datetime(now.year,now.addmonth(1),1).Day)+3)).Dayofweek.ToString.ToUpeer.Equals(“SATURDAY”)
Thanks
Shawn
Why you are using Not while adding Day in Not (New Datetime(now.year,now.addmonth(1),1).Day)+3))
Regards,
Mahesh
Hi,
may I ask what you are trying to achieve here? If your expression is trying to assign something to a boolean value then the first two lines should not exist.
If you are comparing whether the day is saturday or sunday only the comparisons should exist.
Also the dayOfWeek according to VB.NET syntax seems to a bit off (not 100% sure) so please check that also.
Regards
PS : Get back if issue still persists.
may i know the scenario like what do we need to get from this expression buddy
Cheers @shawnmurray
The details are still a bit fuzzy, are you excluding weekends and adding time ? O rare you just getting a boolean value to check for weekends?