Beginning of the month, urgent

Hi all,
I want to get the beginning of the month for a given date.
For example today is 26102007 but I need to get 01102007, any function?
Thanks.Deniz.

Hi Deniz,
You can concatenate '01' like this.
As the begining of a month is always at 01:
CONCATENATE '01' date+2(6) INTO ws_startdate.
If you are using this format YYYYMMDD
CONCATENATE date(6) '01' INTO ws_startdate.
Reward If Useful ,
Regards,
Chitra

Similar Messages

  • Scheduling concurrent Programme at the begining of the month

    Hi all,
    I need to schedule my customize program , and want to run at the begining of the every month. I did not find any option
    in sheduling to shedule at the begining of the month.
    Regards,
    Rizwan Ali Wahla

    Please see (How to Schedule a Concurrent Request to Run Periodically Only on Certain Days and Only During Certain Hours of the Day [ID 189616.1]).
    Thanks,
    Hussein

  • Newsletter usage not defaulting to 0 at beginning of the month

    Hello: I spent 2 hours trying to find the anser, find the right way to ask this question and to find the right person to ask. It appears this is the only forum available to me, the end user who owns the web site. My subscription includes 10,000 newsletters. I had done some reasearch through our sales history and was able to get our customer database above that and we purchased an additional 10,000 emails. Since then at the beginning of every month the email count has defaulted to 9,404/20,000 when I have not sent out a single newsletter campaign. I have deleted all my previouse campaigns hoping that would help but nothing changed.

    Hi there,
    I am in our accounts team & can provide you with your answer here as a once-off.  Please note, in future this type of question is best handled via submitting a case to us & not via the Forums.
    I have checked the site: http://positivepoolwholesale.com/ / id # 67508 - which shows that on 4 Nov 11 the customer purchased a 10,000 email newsletter package (these are valid for use within 12 months). 
    See screenshot here:-
    http://screencast.com/t/miUyB95bes9
    During that same month (Nov 11), there was an email campaign sent to 19,404 recipients.  This means that out of the 10,000/monthly allowance for the site, this total was all used up during the month of Nov 11.  Also, out of the 10,000 pre-paid newsletter package, 9,404 was used up out of 10,000.  This leaves a balance of 596 pre-paid newsletters (which will expire on 3 Nov 12.
    Therefore, the balance showing each month of 19,404/20,000 is correct.  The 20,000 will reduce to 10,000 on 3 Nov 12.
    If you have any further questions about this, please submit a case directly to the BC accounts team & copy in this communication thread. 
    Thanks!
    Cheers,
    BC Accounts
    Message was edited by: CazF - BC Accounts

  • Score usually go up at the beginning of the month?

    Open Dates: Amex (Closed)Date Opened 06/01/2002  AmexDate Opened 05/01/2015  BarclaysDate Opened 05/01/2015  BarclaysDate Opened 07/01/2015  BoA (Closed)
    Date Opened 06/01/2003  BoADate Opened 05/01/2015  Cap1Date Opened 06/01/2015  CBNADate Opened 07/01/2003  ChaseDate Opened 05/01/2015  CitiDate Opened 04/01/2015  Care Credit (Closed)
    Date Opened 02/01/2010  Anyone see anything?  

    NRB525 wrote:
    anon123 wrote:
    Canadian-In-Seattle wrote:
     Experian considers all your cards to have been opened on the 1st of the month in the month they were opened -- have a look at account opened date, you will see on EX that it's always the 1st, regardless of what the actual day was. This is true on EQ as well but I think TU actually uses the real opening day.  So...... Take a look at two things: What happened to the age of your OLDEST account on that one day? And what happened to your AAoA on that one day? Both those numbers at EQ change only on the 1st of a month. I would bet you find your answer as to why your score went up--something hit a nice round number? Good to know about inquiries affecting up to a year. Oldest Account 13.2 year(s) Date Opened 06/01/2002 (Closed on 4/15/15, but Experian treats this as 4/1/15?)
     Nex Oldest AccountDate Opened 07/01/2003 (Open) Average Account Age 4.1 year(s)  So doesn't seem to be there. It must be something that happened in August or September? I'll look around.Well, oldest cards are nice to know, but you have recent INQ. That implies recently opened CC as well.What are the opening dates for each of the newer cards, those under 2 years?My inquiry dae CAP ONE NADate Filed06/08/2015
    AMEXDate Filed05/15/2015 CHASE CARDDate Filed05/14/2015
    BK OF AMERDate Filed05/14/2015 CBNADate Filed04/15/2015

  • Keep files from first of the month for a year

    We have a series of folders with subfolders that have logfiles in them. Each folder has new log files generated daily. However on occasion, a log file is not generated for a day or for a few days.
    I want to keep the log file in each folder for the first of each month, or as close to the day as possible for a year and delete all files older than a year. I also want to delete all files in that folder that are not from the first of the month.
    So, on August 30, 2014 Folder 1 may have log files from each day in August except for August 1. When I run my script on September 1, I want the folder to have files:
    August 02, 2014.log
    July 01, 2014.log
    June 01, 2014.log
    If the first log file is August 5th, then I want to keep that one and delete the rest.
    I currently have 30+ folders that get daily log files. It takes a long time to go into each folder, see which log is closest to the beginning of the month, delete the remaining files from that month, then find the log files from over a year ago and delete
    that one.
    Ive tried a few iterations but, keep getting stuck. Any help would be appreciated.
    Thanks!
    Steve

    Hi Mike,
    I have been looking at those.  One of the problems Ive had is with the date/time format.
    For instance, if I issue
    $testDate=$(Get-Date).addDays(-$(Get-Date).Day).addMonths(-3)
    $testdate gets set to Saturday, May 31, 2014 12:51:59
    When I look for files based on 5/31/2014 it doesn't match because there are no files created at 12:51:59
    Im not sure how to convert $testdate to date only and not time.  Saturday, May 31, 2014 12:51:59 PM
    Saturday, May 31, 2014 12:51:59 PM

  • Return the beginning of the next year.

    I Know that you can return the absolute beginning of a year with:
    TRUNC(SYSDATE, 'YYYY')
    but, given only sysdate, how can I return the absolute beginning of the NEXT year?
    Just adding 365 won't always work.
    Thanks.

    Hi,
    To explain Hoek's solution:
    Prohan wrote:
    ... Just adding 365 won't always work. Exactly! That's because years aren't always exactly 365 days long.
    However, all years are exactly 12 months long.
    ADD_MONTHS ( SYSDATE
            , 12
            )is guaranteed to return a DATE in the current month of next year. It may not be the exact same date as today (that is, if today is February 28, ADD_MONTHS may return February 29, or vice-versa) but it will aways be the expected month and year, and TRUNCating that to the year will always result in January 1 of next year.
    You could also reverse the order of TRUNC and ADD_MONTHS, like this:
    ADD_MONTHS ( TRUNC ( SYSDATE
                      , 'YEAR'
            , 12
            )There is never any rounding error when using ADD_MONTHS on dates at the beginning of the month. If the first argument to ADD_MONTHS is the 1st of some month, the value returned will always be the 1st of the month.

  • Place forecast at the end of the month

    Hi;
    Hope that someone can help me out.
    Is there a way to put our forecast on the last workingday of the month instead of the first working day?
    We are working in monthly buckets.
    Reason is that our customer moved his deliverymoment from the first week of the month to the last week of the previous month.If we want to compare our sales with the correct forecast we have to get them in the same month.
    For instance:
    For the month May we will put our FC in the month April.
    But to avoid 4 weeks stock in advance we want to put it at the end of april and NOT beginning of the month.Than we have our planned order just before.
    Thanks all for your efforts
    Pascal

    Hi Marco,
                You could use the "Day Limit"
    Day Limit = 1 Fixed Date 31 Additional Month = Blank
    Day Limit = 31 Fixed Date 31  Additional Month =1
    This way any Inovice posted on the first day of a month > Due end of current month,   from 2nd day onwards > Due end of next month.
    Kind regards

  • I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't

    I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't use.  This month my daughter comes home from College and she accidentally uses 24G.....14 over get blind sided with $140.00 in overages.  I called Verizon today......stopped in to the store today......My neighbor told me they waved charges for her one time.  Lots of charges.....But I'm am getting no help.  Not even an offer of a payment plan to help me out.  I went back just 6 months and I have over paid for 19G.....Seems like they would like to help out their loyal customers!!!!     Does anybody have any suggestions on how to deal with them?   We are not wealthy....or I would just pay this and walk away......

    There is a big misconception in what customers believe a cell carrier is obligated to do.
    You pay a set price to use up to that amount of xx data. It makes no difference if you use it to the paid limit or way under. Its like peace of mind when you don't have to worry about a data counter.
    Your daughter used the data, your plan is quite clear of what overage charges are. Why should or would Verizon wireless just forgive the charges because you are a customer? Your daughter used the data, get the money from her. That is the responsible thing to do.
    There is no "I have been a loyal customer so please remove the $120, or $250, or $2,000.00 since I did not mean to use it"
    Your electric company, or gas company or any other company does not remove valid charges. Why should Verizon wireless?
    Just pay the invoice and don't think you are being mistreated because Verizon is a business and not a charity.
    Good Luck

  • Make an alert box at the beginning of every month

    I'm writing a budgeting tool and at midnight at the beginning of every month I want to pop up an alert saying it is the start of a new month and enable a button in jsp.
    I have tried a couple ways to do this. First I wanted to keep creating a calendar and check if the date was 1. But then this would be much more work than is needed.
    Next I tried to use the TimerTask class and set a boolean to true at the first of every month, but then I couldn't figure out how to make the javascript run when the run method of that thread executes. I tried using a while loop in the jsp page itself to check the boolean but this just caused the page to hang.
    A third idea I was trying is to have an invisble form with a hidden field using this boolean. I was trying to figure out a way to use onChange to trigger the javascript, but this would only work for some sort of visible input.
    Anyone have any exprience on scheduling a task like this at the beginning of every month or about how to force a page to reload at a specific time? Thanks.

    You could even put that in a frame with a form to navigate a seperate frame:
    //frameset
    <html>
    <frameset frameborder="0" framespacing="0" rows="26px,*">
    <frame scrolling="no" frameborder="0" marginheight="0"
        marginwidth="0" name="frameA" noresize src="testingB.jsp" />
    <frame scrolling="no" frameborder="0" marginheight="0"
        marginwidth="0" name="frameB" noresize src="http://www.google.com" />
    </frameset>
    </html>
    //then your time-important page (called testingB above)
    <html>
    <body>
        <script type="text/javascript">
            function navigate() {
              var navigateTo = document.forms[0].address.value;
              if (navigateTo.toLowerCase().indexOf("http://" == -1)) {
                  navigateTo = "http://"+navigateTo;
              parent.frameB.location.href = navigateTo;
              return false;
            function doAlert() {
                alert("Time to do Something");
                window.location.reload(); //so it will happen again next month.
    <%
        //When first created, the calendar points to now.
        Calendar cal = Calendar.getInstance();
        long curTime = cal.getTimeInMillis();
        //then, lets set it to the 1st day of the month, at 00:00:01.00 (1 second after midnight
        cal.set(Calendar.DAY_OF_MONTH, 1);
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 1);
        cal.set(Calendar.MILLISECOND, 0);
        //finally, add a month to get the first second of next month
        cal.add(Calendar.Month, 1);
        long triggerTime = cal.getTimeInMillis();
    %>
            //set the doAlert to occur after the # of milliseconds between now and
    next month.
            setTimeout("doAlert()", <%= (triggerTime - curTime) %>);
        </script>
        //form will read address you type in input, and navigate the other frame there.
        <form onSubmit="navigate();" name="nav">
          <input type="text" name="address" size="100" style="margin:3px" />
          <input type="submit" name="Go" value="Go" style="margin:3px" />
        </form>
    </body>
    </html>

  • HT3275 I've 1.85TB empty space on my time Machine, but it only backs up to the beginning of the previous month. it should have weekly back-ups for every month before that. Any ideas why it deletes stuff older than a month?

    I've 1.85TB empty space on my Time Machine, but it only retains back-ups to the beginning of the previous month. I should be able to access weekly back-ups for every month before that until the disk is full. Any ideas why it deletes stuff older than a month?
    Thanks, Rigby.

    If you are using Ethernet to connect your Mac to the Time Capsule, are you allowing at least 2-3 minutes for Time Machine to fully load when you open the application to see your backups?
    If you are using wireless to connect, you may need to allow 8-10 minutes or longer for everything to fully load, depending on the speed of your wireless connection.
    If you see only white time "bars" on the timeline at the right of the screen, you are seeing temporary backups. Permanent backups are displayed with purple "bars".

  • I have a 4 month long text message thread conversation. What's the quickest way to get to the very beginning of the conversation?

    I have a 4 month long text message thread conversation. What's the quickest way to get to the very beginning of the conversation?

    The startup.exe file is locate in the \NI-RT\STARTUP directory. 'cd NI-RT' then 'cd STARTUP' should get you to the right place after making the connection with ftp. I don't recognize PH_EXEC.EXE. Logging in as anonymous is fine. I don't recall seeing documentation on the file structure and locations on the module but I'm sure there is some. I just wandered around w/ftp.
    The program to update the node should be below. Enter the IP address, the green light will confirm the node is found.
    The version function scans the existing startup.exe for a string beginning and ending with " RU Version " and prints everything in between as the version.
    The autostart function will copy the existing ni-rt.ini file to your computer, mod
    ify the autostart as requested, then put the file back. Leaves the copy on the PC, which can be handy.
    Send file will request a file of the format startup*.dat which will be renamed startup.exe and ftp'd to the module. Lets you keep version numbers in the filename on the PC side. Your directory structure probably won't match mine so you'll have to browse for your file.
    Reboot module reboots the module.
    Hope this is useful, let me know if anything doesn't make sense. Thanks.
    Matt
    Attachments:
    RNconfig.exe ‏855 KB

  • OBIEE 11.1.1.6.12 - sum of payments starting from the beginning of prompt month

    Hi all,
    how do I calculate sum of payments starting from the beginning of prompt month in OBIEE 11.1.1.6.12 ?

    used firefox no issues but in ie not seeing any issues

  • I want to see the history of the mozilla browser in my computer for the month of November 2013 but I can not be you that there is a solution that is very urgent

    on my browser history are displayed months since December 2013 until now but I want to see the month of November 2013 to help me find the solution that is very urgent

    Hi Maha123,
    If your Firefox history only goes as far back as December, I'm afraid it's unlikely that you'll be able to retrieve information from any earlier.
    It might worth contacting your Internet Service Provider (ISP) as they may have logs of the websites you visited in November.
    Regards,
    Jayelbe

  • Hi, i've just bought the month by month suscription but it hasnt been activated and i need it urgent

    Hi, i've just bought the month by month suscription but it hasnt been activated and i need it urgent

    There is a different forum for Cloud problems http://forums.adobe.com/community/creative_cloud
    And, a link that may help http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    If not, you will need Adobe chat Next link has a "Chat Now" button near the bottom
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • How to: Schedule a job to run on the first business day of the month

    In Oracle 10.2.0.3, is there a way to schedule a repeating job to run on the first business day of the month? For example, if the first of the month falls on a weekend (such as Saturday, 11/01/2008), I would like the job to run automatically on Monday (for example, 11/03/2008) instead.

    set serveroutput on
    begin
      print_dates('FREQ=MONTHLY;BYDAY=MON,TUE,WED,THU,FRI;BYSETPOS=1;',
          to_timestamp_tz('01-JAN-2008 12:00:00','DD-MON-YYYY HH24:MI:SS'), 12);
    end;
    Gives:
    TUE 01-JAN-2008 (001-01) 12:00:00 -07:00 -07:00
    FRI 01-FEB-2008 (032-05) 12:00:00 -07:00 -07:00
    MON 03-MAR-2008 (063-10) 12:00:00 -07:00 -07:00
    TUE 01-APR-2008 (092-14) 12:00:00 -07:00 -07:00
    THU 01-MAY-2008 (122-18) 12:00:00 -07:00 -07:00
    MON 02-JUN-2008 (154-23) 12:00:00 -07:00 -07:00
    TUE 01-JUL-2008 (183-27) 12:00:00 -07:00 -07:00
    FRI 01-AUG-2008 (214-31) 12:00:00 -07:00 -07:00
    MON 01-SEP-2008 (245-36) 12:00:00 -07:00 -07:00
    WED 01-OCT-2008 (275-40) 12:00:00 -07:00 -07:00
    MON 03-NOV-2008 (308-45) 12:00:00 -07:00 -07:00
    MON 01-DEC-2008 (336-49) 12:00:00 -07:00 -07:00
    and the print_dates function is (10.2):
    create or replace procedure print_dates
      cal_string in varchar2,
      start_date in timestamp with time zone,
      nr_of_dates in pls_integer
    is
      date_after timestamp with time zone := start_date - interval '1' second;
      next_execution_date timestamp with time zone;
    begin
      dbms_output.put_line('  -->');
      for i in 1 .. nr_of_dates
      loop
        dbms_scheduler.evaluate_calendar_string
         (cal_string, start_date, date_after, next_execution_date);
        dbms_output.put_line(to_char(next_execution_date,
                        'DY DD-MON-YYYY (DDD-IW) HH24:MI:SS TZD TZH TZR'));
        date_after := next_execution_date;
      end loop;
    end;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • How to do it? - making plug-in 64-bit native for AE CS5

    Hi I'm a Japanese software developer of After Effects effect plug-in. Those plug-ins made by CS3 SDK. Now, I want to make my plug-ins 64-bit for AE CS5 on both Winsows 7 and SnowLeopard(v.10.6.x). But I can't find any informatin abuot this in this fo

  • How to reduce suttering in Air for iOS GPU mode?

    My game currently runs at 60FPS on iPad 2 and has no problem regarding rendering speed but I'm rather annoyed by constant stuttering which causes the game to stop for 0.1-0.5 sec  once in a while. The stuttering behavior is similar to when garbage co

  • How can I Dequeue a Single Message

    Is it possible to use BPEL to dequeue just a SINGLE message from an MQ - as an activity in a process flow? It seems that the "Receive" activity drains a queue, and is meant to be used at the beginning of a BPEL process (to kick off a new instance). I

  • Photos Display Incorrectly after iPhoto 9.1.2 Update

    Since the latest iPhoto Update (9.1.2) Photos have been displaying incorrectly on AppleTV in Events View. Instead of being organized in events like in iPhoto, the events are displayed with 2 photos in each, creating multiple events for each actual ev

  • Resolve Base URL

    Hi, I'm working with java.net.URL to code a simple program that read a file and get the archive described in this file. Actualy, the file is an HTML document done by a third party, and the program just have to read this file and download all the othe