## Code notes & cookbook

### Tableau Desktop

#### DATE manipulation

- • How to calculate first day of Month
- • How to calculate last day of Month
- • How to calculate first day of next Month
- • How to calculate last day of next Month
- • How to calculate first day of next two Months
- • How to calculate last day of next two Months
- • How to calculate first day of previous Month
- • How to calculate last day of previous Month
- • How to calculate number of days of current Month
- • How to calculate number of days of previous Month
- • How to calculate number of days of next Month
- • How to calculate first Monday of a given Month
- • How to calculate the week number
- • How to calculate weekname of a day
- • How to use DATEADD function in Tableau
- • How to calculate max DATE overall
- • How to calculate second max DATE overall