Summary
SQL Query for format of time in report
Content
Hello,
I'm working on a report where I have a field which correspond to the time of arrival of a truck at a shipment stop. I would like the time displayed (which is currently set as local time) to be in french format if local shipment stop is in France. Currently I have this SQL query :
, to_char(utc.get_local_date(itm.STOP_PLANNED_ARRIVAL, itm.location_gid), 'DD-MM-YYYY') ||' '|| to_char(utc.get_local_date(itm.STOP_PLANNED_ARRIVAL, itm.location_gid), 'HH:MI AM') STOP_PLANNED_DATE_ARRIVAL
, to_char(utc.get_local_date(itm.STOP_PLANNED_DEPARTURE, itm.location_gid), 'DD-MM-YYYY') ||' '|| to_char(utc.get_local_date(itm.STOP_PLANNED_DEPARTURE, itm.location_gid), 'HH:MI AM') STOP_PLANNED_DATE_DEPARTURE
from SHIP_STOP_ITEM_BOV itm
So the time is displayed in the AM format, without taking account of the location of country. How would I do that ?
Thanks,
Antoine