Add dates in REST API