Determine if date or datetime should be displayed.