File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Mongo DB Applied Patterns
this week in the
MongoDB
forum
or a resume review from
Five Year Itch
in the
Jobs Discussion
forum!
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
compare months between date field and system date
vivien siu
Ranch Hand
Joined: Nov 10, 2005
Posts: 143
posted
Jul 18, 2006 21:43:00
0
Hi this is a question for ORACLE database.
I wana know how can you take the difference of days between a Date field in table and the system date where their difference must be 30?
for example the date field value is 8/30/2006 and the system date is 7/31/2006. How do I calculate the difference of days between them?
I'm not available, my BF's name is WORK.
vivien siu
Ranch Hand
Joined: Nov 10, 2005
Posts: 143
posted
Jul 18, 2006 22:15:00
0
erm... never mind I think I found the solution:
select CUST_WSID from LICENSE WHERE LIC_EXPIRYDATE = TO_DATE(SYSDATE + 90)
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26138
66
I like...
posted
Jul 19, 2006 19:26:00
0
Thanks for posting the solution so that others who see this thread in the future can benefit.
[
Blog
] [
JavaRanch FAQ
] [
How To Ask Questions The Smart Way
] [
Book Promos
]
Blogging on Certs:
SCEA Part 1
,
Part 2 & 3
,
Core Spring 3
,
OCAJP
,
OCPJP beta
,
TOGAF part 1
and
part 2
I agree. Here's the link:
jrebel
subject: compare months between date field and system date
Similar Threads
*48hrs Rule (Solution method)*
Writing a query that uses the current date
Date Difference
date manipulation
how to covert string to date object?.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter