Query help

Hi,

Can someone help me with the below?
image

End of statement expected?

Thanks!

1 Like

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 :smiley:

1 Like

Hi @Raghavendraprasad

Please see text. :slight_smile:

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

@shawnmurray

Why you are using Not while adding Day in Not (New Datetime(now.year,now.addmonth(1),1).Day)+3))

Regards,
Mahesh

1 Like

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 :slight_smile:

PS : Get back if issue still persists.

1 Like

may i know the scenario like what do we need to get from this expression buddy
Cheers @shawnmurray

2 Likes

Hi all,

Trying to achieve the following:

Thanks

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?