date-selector: add gcal_date_selector_use_24h_format function

Will be used later on in order to avoid retrieving this value multiple times with GSettings.