Top "Date-arithmetic" questions

The term 'date-arithmetic' refers to determining via code such information as how many days, hours, etc.

SQL date conversion results to "invalid number format model parameter."

I have to select some data from Oracle 11g database, but I can't seem to figure out why following select …

sql oracle oracle11g date-formatting date-arithmetic
How do you find results that occurred in the past week?

I have a books table with a returned_date column. I'd like to see the results for all of the …

sql postgresql date-arithmetic
How can I calculate what date Good Friday falls on, given a year?

Does anyone have a good algorithm to calculate what date Good Friday falls on given the year as an input? …

c# algorithm date date-arithmetic computus
Time difference in seconds

In a Perl program I have a variable containing date / time in this format: Feb 3 12:03:20 I need to determine if …

perl date time date-arithmetic
Subtract one hour from datetime rather than one day

I have a datetime column in Oracle (MM/DD/YYYY HH:MM:SS AM/PM) but when I do this: …

oracle datetime plsql date-arithmetic
How to get a list of months between 2 given dates using a query?

I have 2 dates, say 28-Mar-2011 and 29-Jun-2011. I need an sql query that will display the months between these 2 dates …

oracle date-arithmetic
ADD_MONTHS function does not return the correct date in Oracle

See the results of below queries: >> SELECT ADD_MONTHS(TO_DATE('30-MAR-11','DD-MON-RR'),-4) FROM DUAL; 30…

sql oracle date-arithmetic
Getting current date in JSTL EL and doing arithmetic on it

Without using scriptlets, what's the correct way for doing date arithmetic in JSP? Here are examples what I'm trying to …

jsp date jstl el date-arithmetic
ORA-00932: inconsistent datatypes: expected INTERVAL DAY TO SECOND got CHAR

SELECT COALESCE ( (to_timestamp( '2014-09-22 16:00:00','yyyy/mm/dd HH24:MI:SS') - ('2014-09-22 09:00:00' ,'yyyy/…

oracle timestamp date-arithmetic
Subtract hours from the now() function

We have a machine running 24x7. Every day I report the number of pieces it produced per hour. In our …

sql postgresql datetime timezone date-arithmetic