I want to calculate time between two dates, to show how much time there's left in a Sale. However when I display dates, it only shows the date and not the time (though I inserted date with dd/mm/yyyy hh24:mi:ss).
SELECT date
FROM Sale
This is the Sale entity. (left unrelevant attributes out)
CREATE TABLE Sale
(
dateStart DATE NOT NULL,
dateEnd DATE NOT NULL
);
Basically, I just want to show the hours, minutes, seconds left till the sale is over. So dateEnd minus the dateStart... How would I go about this?
Thanks!