Setting format according to Date, DateTime and Time annotations