Date minus 1 month in January

15 pts.
Tags:
AS/400
AS/400 Query
AS/400 query, when I have TODAY = current(date), then when today - 1 month, If  the current date is Jan 1, 2013, will it be Dec 1, 2013 or Dec 1, 2012?  I assume Dec 1, 2012, but want to be sure.  Likewise, on Mar 1, 2013 current, it would give Feb 1, 2013, correct (again, I only really care if it is Feb 2013, not using day) I don't care about the day, but intend to use month and year from this process (query in job scheduler to run on the first day of each month), to get activity occurring last month.  Want to make sure there are no holes in my logic. Thanks.

Software/Hardware used:
iseries

Answer Wiki

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

If you are using the function of munus 1 month, the date will be 12/01/12.

Discuss This Question: 1  Reply

 
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
  • RamvishakRamesh
     Dec 1, 2012
    2,505 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