Added util method for date.