Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
extract month from current_date in postgresql
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Vikas Jain
New Member
Join Date:
Feb 2009
Posts:
6
#1
extract month from current_date in postgresql
Feb 26 '09, 02:48 PM
Hi,
please tell me how to subtract month from current_date in postgresql.
Thanks in advance.
Vikas Jain
JosAH
Recognized Expert
MVP
Join Date:
Mar 2007
Posts:
11453
#2
Feb 26 '09, 03:47 PM
Originally posted by
Vikas Jain
Hi,
please tell me how to subtract month from current_date in postgresql.
Thanks in advance.
Vikas Jain
Do you have a java.sql.Date object? If so, its parent class (an ordinary java.util.Date) has a getMonth() method.
kind regards,
Jos
Comment
Post
Cancel
Vikas Jain
New Member
Join Date:
Feb 2009
Posts:
6
#3
Feb 27 '09, 03:57 AM
Thanks Sir,i got the point.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment