Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 100277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:32:56+00:00 2026-05-11T00:32:56+00:00

How do I subtract 30 days from a date in PowerBuilder? I have the

  • 0

How do I subtract 30 days from a date in PowerBuilder?

I have the following code that returns today’s date in a parameter, but I need today – 30 days:

dw_1.setitem(1, ‘begin_datetime’, datetime(today(), Now()))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:32:56+00:00Added an answer on May 11, 2026 at 12:32 am

    you’re probably looking for the RelativeDate function. Unfortunately, it takes a Date and not a DateTime as a parameter, but we can get around that:

    dw_1.setItem(1, 'begin_datetime', DateTime( RelativeDate( today(), -30), Now() ) 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a date that is 2011-01-02 and I subtract 7 days from
This code where I subtract days from a date does not get the right
I need to subtract 365 days from the current date. I am not sure
It seems that I can't subtract 7 days from the current date. This is
I would like to subtract number of days from a date with the format
I'm trying to add or subtract some days to inputs that I have. In
Possible Duplicate: How to subtract X days from a date using Java calendar? This
I want to subtract n days from the current date in Java. How do
I have this code: $expiration_date='2041-07-14' $epoch_timestamp_expiration_date = strtotime($expiration_date); //Get 7 days $seven_days_ago=7*86400; //subtract seven
I've tried Key.Subtract but I think that is the numpad version. I'm looking for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.