Added serialize date method