Formatted date for api