This function can be used to check if a given date corresponds to a workday or not.
The special case of a null-input will give a return value of null
Returns 1 if the date corresponds to a workday and 0 if it does not. If the given date is null then null is returned.