how to check weekend dayes

I'm working on vacations requested by the employees. The employee can not take a vacation during the weekend.
So, how can I check the weekend days

You can use function DayOfWeek(DateTime)

Returns the week day of, ranging from 0 (Sunday) to 6 (Saturday).

Hi Lina,

Please refer this link where you will get some idea about your requirement.

Thanks & Kind Regards,


@Jose Goncalves thanks a lot. It works :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.