parsing days correctly