Dataset used: JRC Monthly Water History v1.0 (1984-2015). The google earth engine id is ‘JRC/GSW1_0/MonthlyHistory’.

The highlight of this dataset is

Band NameLabel
water0 = no data
1 = not water
2 = water

The datasets are available only up to 2015. To learn more about the dataset, please see this Nature, 2016 paper.

The detail explanation of the code is available here The GUI makes it easier to do the temporal and spatial filter.