Thanks to @Bathsheba, @AxelRichter and more.
The function depends on which language you have set in Open Office. In my OO its german so I'll let my calculation for the first and last day of a work week here:
Monday: =DATUM(JAHR(HEUTE());MONAT(HEUTE());TAGEIMMONAT(MONAT(12)) - ( TAG(HEUTE()) - WOCHENTAG(HEUTE();2)) )
Friday: =DATUM(JAHR(HEUTE());MONAT(HEUTE());TAGEIMMONAT(MONAT(12)) - ( TAG(HEUTE()) - WOCHENTAG(HEUTE();2) - 4) )
So you just have to translate into your language. Hope this helps others too.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments