I have a dataset with a column date like this :
id | date |
---|---|
1 | 2018-02-13 |
2 | 2019-02-28 |
3 | 2014-01-23 |
4 | 2021-10-28 |
5 | 2022-01-23 |
6 | 2019-09-28 |
I want to select data that have a date lesser than 15th February
I tried an ifelse statement to define 15th february for each year in my database but i want to know if there is an easier way to do so !
Here's the result i'm expecting
id | date |
---|---|
1 | 2018-02-13 |
3 | 2014-01-23 |
5 | 2022-01-23 |
Thanks in advance