support 2 date formats