Add getDate and getBody functions to Post class