SQL CurDATE

35 pts.
Tags:
SQL
I need to change the system CURDATE()to CYYMMDD so that I can subtract 2 days to compare to our data. Any suggetions?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Where and with what are you wanting to do this? In SQL or an application program such as RPG or COBOL?

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • NewGirl56
    I am doing it in SQL in a product called Showcase. My data come in as CYYMMDD from an iSeries database What I need to do is compare my database CYYMMDD > Curdate() - 2 but nothing I am trying works.
    35 pointsBadges:
    report
  • Shiregators
    Maybe you could use DATEDIFF() ?
    10 pointsBadges:
    report
  • NewGirl56
    I have now gotten past this point, but now I need tmore help.... I have and ODBC connection to the iseries which is getting a date from the database as numeric. I am getting the curdate() which is in date format. I need help converting the numeric to date (date wrapper is not the answer) to see if it is > curdate().
    35 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following