How to find a specific day in a range of dates

Hi !
Can someone help me with this
I would like to find if there is a Saturday in a range of dates:
ex: OpenDate:2012-01-19 to CurrentDate,  should return  2012-01-21
      OpenDate 2012-01-23 to CurrentDate, should return null field
Thank you

Hi Diane,
You can use this formula to find a Saturday in a date range:
numbervar days := datediff("d",{Date_Field}, currentdate)+1;
numbervar x;
datevar array dates;
redim dates[days];
datevar sat;
for x := 1 to days do
    dates[x] := {Date_Field}+(x-1);
    if weekday(dates[x]) = 7 then
    datevar sat := dates[x];
sat;
Hope this helps!
-Abhilash

Similar Messages

  • How to find a specific word in sentence in each line?

    How to find a specific word in sentence in each line and output will show start from the beginning from specific word plus with small description from each sentence?
    For example: I need to find a "+Wednesday+" and "+Thursday+" word in each sentence by line by line from "myfile.txt".
    Go ballet class next Wednesday.
    On the Wednesday is going to swim class.
    We have a meeting on Thursday at Panda's.
    Then it will show the output:
    Wednesday : ballet class
    Wednesday : swim class
    Thursday: meeting at Panda's
    I am going to figure out in Java console to read from a file for specific word from each line and how to make it output in correct way. I know already to make input/file codes.

    I got it and understand much better. Thank you very much. There is a problem with it because I knew how to make
    a specific word in sentence but how I should make Output for specific word and some words from sentence.
    For example:
    Input:
    +"On Thursday go to ballet class"+
    +"Swim class on Friday one time a month at 2 p.m."+
    I used the codes for that:
    class FindSchedule{
         String firstline = "On Thursday go to ballet class ";
         String secondline = "Swim class on Friday one time a month ";
         FindSchedule(){
              System.out.println(firstline + findTheIndex("Thursday", firstline));
              System.out.println(secondline + findTheIndex("Friday", secondline));
         public int findTheIndex(String word, String sentence){
              int index;
              index = sentence.indexOf(word);
              return index;
         public static void main (String[] args){
              new FindSchedule();
    }The output will be:
    Thursday: ballet class
    Friday: 14:00 swim class one time a week
    Notice that time is changing in output complete different from input.
    I need to find out how to extract some words from each sentence for output. Do you know how to do it?

  • Hi, I don't know how to find a specific security patch to apply to my Oracle database version to fix a vulnerability

    Hi, I don't know how to find a specific security patch to apply to my Oracle database version 11.2.0.2.0 (on windows server 2003 32 bits) to fix the following vulnerability:
    Risk: High
    Application: oracle_tnslsnr
    Port: 1521
    Protocol: tcp
    Synopsis:
    It is possible to register with a remote Oracle TNS listener.
    Description:
    The remote Oracle TNS listener allows service registration from a remote host. An attacker can exploit this issue to divert data from a
    legitimate database server or client to an attacker-specified system.
    Successful exploits will allow the attacker to manipulate database instances, potentially facilitating man-in-the-middle, sessionhijacking,
    or denial of service attacks on a legitimate database server.
    Solution:
    Apply the work-around in Oracle's advisory.
    Thank you for your help

    2835604 wrote:
    Hi, I don't know how to find a specific security patch to apply to my Oracle database version 11.2.0.2.0 (on windows server 2003 32 bits) to fix the following vulnerability:
    Risk: High
    Application: oracle_tnslsnr
    Port: 1521
    Protocol: tcp
    Synopsis:
    It is possible to register with a remote Oracle TNS listener.
    Description:
    The remote Oracle TNS listener allows service registration from a remote host. An attacker can exploit this issue to divert data from a
    legitimate database server or client to an attacker-specified system.
    Successful exploits will allow the attacker to manipulate database instances, potentially facilitating man-in-the-middle, sessionhijacking,
    or denial of service attacks on a legitimate database server.
    Solution:
    Apply the work-around in Oracle's advisory.
    Thank you for your help
    that sounds like the "tns poison" vulnerability.  CVE 2012-1675 - Oracle Security Alert CVE-2012-1675
    See MOS note 134083.1  and 1453883.1

  • How to find a specific song?

    I am looking for the song "To Sir With Love" by Lulu with the group The Mindbenders. My problem is that apparently there are two versions? And when I listen to the samples I can't tell if it's has the lyrics I'm looking for. I want the version which is sung in the movie which includes the line Those awkward years... Does anyone know how to find a specific version of a song? Thank you in advance for your help.

    Search the iTunes Store for "to sir, with love"
    One of the songs will contain in the title (from the Columbia movie.....
    No guarantee but I would guess that's the one you are looking for.
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=193322123&id=19332 1271&s=143441

  • How to find the specific build of  Oracle9i Jdeveloper??

    Hi All
    I am quite new to OAF, Please help How to find the specific build of Oracle9i Jdeveloper that corresponds to the specific OA Framework release installed in the runtime environment. I would like to know two things here.. how to find 1)what is the patchset installed in environment 2) which Jdeveloper ARU corresponds to that.
    Thanks in Advance !
    Savitha

    Pl see MOS Doc 416708.1 (How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x)
    HTH
    Srini

  • Start routine for insert a record by each day in a range of dates

    Hi all,
    I need create a start routine for insert 1 record by each day in a range of dates:
    example:
    Actual.
    DATE_I             DATE_F          TIME_I       TIME_F      TIME_minutes
    04/04/2008       05/04/2008     13:40:00     23:00:00        2000
    Result:
    DATE_I             DATE_F          TIME_I       TIME_F      TIME_minutes
    04/04/2008       04/04/2008     13:40:00     24:00:00        X
    05/04/2008       05/04/2008     00:00:00     23:00:00        Y
    I thanks any help.
    regards.
    Alberto.

    Hi Alberto,
    What I understood from your requirement is that you want to split the record into 2 since you have 2 dates coming from the source.
    In the transformations you will have to create new rule group one for each of the dates.
    You can create the new rule group by clicking on the 'Rule Group' button and then clicking on the 'New Rule Group'.
    In the newly created rule groups take care to distribute data for each date separately.
    Hope it is clear.
    All the best...
    Regards,
    Krishna

  • How to find a specific activity done by a particular user in the database

    How to find who (a specific user) does what (activities) on a specific date/time to certain Objects in a database instance. If similar posting and/or resources are available, please advise.
    Thanks.

    I have got the same problem. My operation steps is below:
    1. create one dictory
    mkdir /usr/local/dbs
    chown oracle:oinstall /usr/local/dbs
    2. modify the paramter
    alter system set utl_file_dir='/usr/local/dbs' scope=spfile;
    3. restart database
    4. create the logmnr file:
    BEGIN
    dbms_logmnr_d.build(
    dictionary_filename => 'logminer_dict.dat',
    dictionary_location => '/usr/local/dbs');
    END;
    5. add the online redo log file:
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.new,logfilename =>'/u01/app/oracle/oradata/orcl/redo01.log');
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.addfile,logfilename =>'/u01/app/oracle/oradata/orcl/redo02.log');
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.addfile,logfilename =>'/u01/app/oracle/oradata/orcl/redo03.log');
    6. start logmnr
    BEGIN
    dbms_logmnr.start_logmnr(
    dictfilename => '/usr/local/dbs/logminer_dict.dat');
    END;
    7. check the result
    select sql_redo FROM v$logmnr_contents;
    I got error message at the step:
    ORA-01306:dbms_logmnr.start_logmnr() must be invoked before selecting from v$logmnr_contents
    Could anyone help about this?

  • How to find a specific text(string) in a list (100) programs

    Dear All,
    Wish tou a very happy new year 2009!!!
    please let me know how we can find a specific word(eg: "barrel") in a list of programs/reports/bdc/user exits/field exits/function modules.
    Thanks in advance.
    Kumar.

    hi kumar,
    open EWK1 transaction and search for the word or string according to your requirement.
    Cheers
    Gautham

  • How to find the specifed user-exit

    Hi, experts. i am first time to do enchancement. can anyone tell me how to find specifed user-exit. for example, how to find MV45AFZZ?  Also, what i should pay attention to when doing enhancment works? thanks.

    Hi Jrockman,
    There are many things associated to user exit.
    a) Tcode- CMOD.    here you can find
    b)  USER-EXIT triggering points ->
    Go to se93 and give the tcode to find the main program associated to it.
    Go to se38 and give the main program.
    Find the package associated to it.Go to->Object Directory Entry.
    Go to smod transaction.
    Press f4.
    Press Information System Button.
    Give the Project(Dev Class).
    Press enter.
    Find the enhancements associated
    c) Check the code posted by me ,to get the list of User exits and Badi for a particular tcode in the link mentioned below.
    Re: User Exit for IW22 - to populate custom fields
    d) few useful links to understand User exits.
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sappoint.com/abap/userexit.pdf
    ABAP Enhancements and Modifications - General
    https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050
    Menu Exit
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/menu-exits-72696#
    Screen Exit
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    Hope it helps.
    Manish

  • How to find last 30 days logedin users information in a schema

    Hi All,
    Here is an requirement to find the users and machine information who are all logged into the schema from the past  30 days .
    I am using v$sessions table to find  the users & machine info. But is there any other oracle table where we can find on particular day how may people are logged in .
    Could you please help me by giving suggestions .
    Thanks
    Sree

    Hi Suri,
    Thanks a lot for your help ,
    Thanks
    Sree

  • How to find a specific function's description?

    Hi,
    I'm now looking at xperf stack trace, I would like to know the description of a specific function. For example, I don't know what does RtlUserThreadStart() function do. How to find such information. I tried to search the function name on MSDN, but nothing
    came up.
    thank you!
    Ah_Chao|| MCSE,VCP,EMCSAe

    could anyone show me some lights on this?
    thanks in advanced!
    Ah_Chao|| MCSE,VCP,EMCSAe

  • How to find a specific APP

    How do you find a specific free App once you sign in the Apple Store?

    The term Apple Store refers specifically to the physical Apple Stores located in various cities in countries around the world, the Apple online store at www.store.apple.com and the Apple telestore at 1-800-MY-APPLE. The Apple Store does not sell internet downloadable software apps or games. It sells a limited stock of boxed software.
    Apple sells apps & games through the Mac App Store accessed through an app on an Intel-based Macintosh computer running OS X Snow Leopard 10.6.8 or newer.
    Apple sells apps & games for iOS devices; iPhones, iPads and iPods Touch through the iTunes App Store which can be access through the iTunes app on a Mac or PC or the App Store app on an iOS device.
    Please use this exact terminology when seeking help so that we know exactly which store you are trying to use.
    Are you using the Mac App Store app referred to by seventy one in his post? Or are you looking for apps somewhere else?

  • HT4085 how do find a specific author

    How do I find a specific Author.

    If you mean in the ibookstore in the iBooks app then you can type in the author's name in the search box at the top right of the Featured, Top Charts or Categories tabs - or you can just select the author (if they have any ibooks in the ibookstore) in the Browse tab

  • How to find a specific field name for the sapscript?

    Hi all,
    I have to print out the ship-to party in a sales quotation, but I can't find out which field should I use in the sapscript, how to find out?
    I tried to retrieve VBCO2-KUNWE, VBPAPO-KUNNR, VBPAV-KUNNR, but nothing returns.
    Thanks.

    Hi ,
    Can you check
    Table VBPA with PARVW = 'WE' and VBELN and POSNR.
    VBPA-KUNNR  -Ship to Party.
    Lanka

  • How To Find Out Current Day Name

    Hi,
    How To Find out Today Name in OBIEE11g.

    Use formula DAYNAME
    ex: DAYNAME("Close Date") or DAYNAME(current_date)
    Pls mark correct/helpful also for your old posts !!!
    If given info is not helped pls update with your solution for these posts
    How To Calculate TOPN variable...
    Re: Top N Issue...
    Issue with Dyamic varibles.
    How To Create Global Filter...
    Edited by: Srini VEERAVALLI on Dec 17, 2012 10:05 AM

Maybe you are looking for