WEEKDAY converts a serial number to a weekday.
This function returns an integer in the range 0-6, where Saturday is 0, Sunday is 1, etc.
Note that Gnumeric will perform regular string to serial number conversion for you, so you can enter a date as a string.
This function is Excel compatible.