Set format according to Date, DateTime and Time annotations
Merge PR #235