Type converter method added for date