sure it's possible to do the same with date function, but why it works for you and doesn't for me?