Number of Days Since 1900

Here is a simple Orace query to calculate the number of days since 1900.

select to_char(sysdate,'J') - to_char(to_date('01/01/1900','DD/MM/YYYY'),'J') from dual;

Thanks to Ari Kaplan for the query!

Advertisements
This entry was posted in Oracle and tagged , . Bookmark the permalink.

2 Responses to Number of Days Since 1900

  1. Bipin Sekhon says:

    interesting article 😀 I am so looking forward to seeing more articles!

    !!

  2. Mia says:

    Hi! I’ve been following your site for a while now and finally got the bravery to go ahead and give you a shout out from Dallas Tx! Just wanted to mention keep up the good job!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s