| Calculation of Day, month and year [message #637376] |
Fri, 15 May 2015 15:47  |
Bilal Khan
Messages: 128 Registered: April 2010 Location: Pakistan
|
Senior Member |
|
|
Dear Experts.
following code is used to calculate the year and month (difference between two date)
select first_name, to_char((sysdate- hire_date) year to month) as "YY-MM"
FROM EMPLOYEES
Is there any code is available to calculate Year, Month and day also.
Regards.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Calculation of Day, month and year [message #637432 is a reply to message #637399] |
Sun, 17 May 2015 13:41  |
 |
Barbara Boehmer
Messages: 9106 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
Thanks, Michel. I used the direct registration link that you provided and tried to register. Apparently, I previously registered and forgot about it, so it emailed me my password, then I tried to login and found that my account had expired due to inactivity, so it sent me another email to reactivate it. All is good now and I can see your code. That is, until the next time that I forget that I already registered there and what the password was.
|
|
|
|