working with stupid dates