Find out date of the current week

i want to find dates within this week (start from monday end to sunday always)
suppose today is monday it retrun only todays date.
if today is wedness day it return moday and tues day and todays date

with t
as
select sysdate sdt,
       decode(to_char(sysdate,'fmday'),
                              'monday',1,
                              'tuesday',2,
                              'wednesday',3,
                              'thursday',4,
                              'friday',5,
                              'saturday',6,
                              'sunday',7) cnt
  from dual
select sdt - (level-1) dt
  from t
connect by level <= cnt
order by 1

Similar Messages

  • How to find last  date of the current year

    Hi
    Please tell me is there any function module to find out the last date of the current year.

    Hi,
    You can do that very simply like so.
    code
    report zrich_0001.
    data: first type sy-datum.
    data: last type sy-datum.
    first = sy-datum.
    first+4(4) = '0101'.
    last = sy-datum.
    last+4(4) = '1231'.
    write:/ first, last.
    [/code]
    OR use function modules
    1.use this function module HR_GB_TAX_YEAR_DATES
    Pass these values
    P08_TXYEAR = Year
    P08_PAYROLL_AREA = '01'
    2.use FM......... FIRST_AND_LAST_DAY_IN_YEAR_GET
    DATA: first LIKE sy-datum,
    last LIKE sy-datum.
    CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
    EXPORTING
    i_gjahr = '2007'
    i_periv = '24'
    IMPORTING
    e_first_day = first
    e_last_day = last.
    WRITE: / 'First Date', first, ' Last Date', last.
    Regards,
    Raj.

  • How do I find out what is the current data rate on my wifi card?

    I have a macbook pro running OSX 10.8.2. When I go to system profiler I see that the card is in 802.11n mode, but how do I find out the current rate? There is a 'Transmit Rate' parameter but there is no unit next to it.

    The data rate depends on if it is using the 2.4 GHz band or the 5 GHz band, both are possible with n-protocol unless you have limited your wireless to only one band.  The data rate in 5 GHz is double that in 2.4 GHz.  Also, you have to know what the protocol of the network is, the AirPort card can only transmit at the rate of the network, so if you are on a g-protocol router, that is the fastest rate you can see.
    And then interference, attenuation, etc. will drop that rate.

  • Cannot select a Date in the 2nd week of any month from "Month View"

    Looking for some help with a strange problem that has started within the last day or 2. In Calendar, under the Month view, it will not allow me to select a date in the current week (or the second Week dates in ANY Month for that matter i.e. 6-8-08 thru 6-14-08, 8-3-08 thru 8-9-08, 4-6-08 thru 4-12-08). It skips from the 1st week of June (6-1-08 thru 6-7-08), to the 3rd and 4th weeks of June (6-15-08 thru the end of the month). It is like it is not recognizing where my finger is pointing. I can access the current week through the list view and day view, and it will allow me to post an event by choosing the current week in the add option, but will not let me pick that date to view it once it has been scheduled. The dot shows up, and it shows on list view, but cannot get to the date by selecting it in month view. That section of my phone screen will let me access other applications and recognize where I am touching, so I don't believe it is a sensor issue. I have tried rebooting, but it has not helped. Any ideas out there? Please let me know. Thank You! for any guidance.

    Clearwater Randy,
    If the screen is only not responding in that particular application, you may want to first do a reset. To reset, press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.
    If that does not resolve your issue, try restoring in iTunes. To restore, connect your iPhone into iTunes and click Restore on the Summary page. Note: All of your information will be erased from the iPhone, so make sure to have a backup of important information on your computer before restoring.
    Hope this helps,
    Jennifer B.

  • Refining a query to only show entries for the current week

    Hello.
    Does anyone know how to modify a query to only show records that have dates in the current week? Records have a start date and a finish date so the query should recognise that an entry may be valid for more than one week?
    Kind Regards,
    swelch

    Assuming week ends on a saturday and dates aren't NULL - change as appropriate - this is one way
    All rows....
    SELECT TO_CHAR (begin_date, 'DD-Mon-YYYY HH24:MI:SS') AS begin_date
    , TO_CHAR (end_date, 'DD-Mon-YYYY HH24:MI:SS') AS end_date
    FROM mydates
    ORDER BY begin_date;
    BEGIN_DATE,END_DATE
    05-Jul-2011 06:49:25,15-Jul-2011 06:49:25
    05-Jun-2011 06:48:57,15-Jun-2011 06:48:57
    15-Jun-2011 06:48:29,25-Jun-2011 06:48:29
    25-Jun-2011 06:47:57,05-Jul-2011 06:47:57
    Current week rows....
    SELECT TO_CHAR (begin_date, 'DD-Mon-YYYY HH24:MI:SS') AS begin_date,
    TO_CHAR (end_date, 'DD-Mon-YYYY HH24:MI:SS') AS end_date
    FROM mydates
    WHERE TRUNC (begin_date) < NEXT_DAY (TRUNC (SYSDATE) - 1, 'Sat') + 1
    AND TRUNC (end_date) > NEXT_DAY (TRUNC (SYSDATE) - 1, 'Sat') - 7
    ORDER BY begin_date
    BEGIN_DATE,END_DATE
    15-Jun-2011 06:48:29,25-Jun-2011 06:48:29
    25-Jun-2011 06:47:57,05-Jul-2011 06:47:57
    Edited by: Robert Chalton on 25-Jun-2011 07:01

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • How to find out which was the last Function Fired in a given schema ..?

    Hi All ,
    Suppose there is a function called track_account (Accnt_id, bank_name ...)
    I have a requirement wherein I need to find out when was the last date when this function was called , by which user and what was the parameter list that was passed .For example i this case - what accountid and bank_name combinations were passed .
    I know the information is stored in one of the V$ tables but am not able to locate the exact table and column that would give me this information .
    Please suggest .
    Edited by: user3481493 on Mar 8, 2010 10:58 PM

    amol_dev wrote:
    Thank you for your reply Brynjar.
    However, I was trying to figure out a way to do this without having to change the calling command line, because due to legacy reasons, it is not possible to change the command line calling the parent applications of this common code.You cannot change the command line, but you can change the applications?
    In main() do this:
    System.setProperty("whoami",(new Throwable().getStackTrace()[0].getClassName()));Elsewhere:
    String whoami = System.getProperty("whoami");

  • Week Number of the current week...URGENT

    hi gurus,
    I want to calculate the week number of the current week as per Fiscal year.
    What variable or the Customer Exit code needs to be written for it?
    regards

    Hi Venu,
       Use the code below. I assume that the client is US based where the Fiscal Year starts 1st October every year.  Just in case the fiscal year starts in some other month then adjust the code (if SY-DATUM+4(2) >= 10.) below. Hope this helps.
    DATA: PFY(8)   TYPE C.
    DATA: CFY(4)   TYPE C.
    DATA: LFY      TYPE I.
    DATA: FYD      TYPE I.
    DATA: TWD      TYPE I.
    DATA: RES      TYPE I.
    if SY-DATUM+4(2) >= 10.
      concatenate SY-DATUM+0(6)
                  '01'
             into PFY.
    else.
      LFY = SY-DATUM+0(4).
      LFY = LFY - 1.
      CFY = LFY.
      concatenate CFY
                  SY-DATUM+4(2)
                  '01'
             into PFY. 
    endif.
    FYD = P_FY.
    TWD = SY-DATUM.
    RES = ( TWD - FYD ) / 7.
    Write: Res.

  • Filter the current week in Outlook Calendar with SQL DASL

    Hello!
    I'm trying to make a new view in Outlook Calendar that displays meetings with a specific subject. The problem is that I can't find anywhere how to show the meetings for the current week only.
    My SQL DASL syntax is so far:
    "http://schemas.microsoft.com/mapi/proptag/0x0037001f" LIKE '%21%'
    And the result is:
    I have tried to use the %thisweek% parameter without result as I don't know how this should be used (look here to see what I mean
    http://blogs.msdn.com/b/andrewdelin/archive/2005/05/11/416312.aspx?Redirected=true).
    Thanks in advance!

    Hi,
    I think it should be an Outlook related question. Please post a new one on Outlook forum via:
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook
    Thanks,
    Simon Wu
    TechNet Community Support

  • Function module to find out DATA BASE size, free space, used size

    Is there any function module to find out DATA BASE , free space, used size
    FM that gives all the details of the Date base
    what data base, what is the size, free space, used space etc...
    instead of writing case by case for each data base. based on  CASE SY-DBSYS.

    Hi,
    Check this FM:
    DB02_ORA_SELECT_DBA_SEGMENT
    alternatively u can check the tcode: DB02
    thanks|
    Mahesh

  • Get the current week and subtract 12 weeks

    Hi Experts,
    Am getting the system current date and getting the current week using the FM->GET_WEEK_INFO_BASED_ON_DATE. Again I want to subtract 12 weeks including the current week. But still confused with the logic.
    Also I came to know that I can use FM->DATE_GET_WEEK and can subtract 12 weeks from it.
    So please advice how can I proceed further and how can I get the weeks that should be lesser than the 12weeks from the current week.
    Waiting for your valuable ideas.:)
    Thanks and Regards,
    Ramakrishnan M

    Try this one:
    DATA: week      TYPE numc1,
             days      TYPE t5a4a-dlydy,
             date      TYPE p0001-begda,
             months    TYPE t5a4a-dlymo,
             years     TYPE t5a4a-dlyyr.
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
         EXPORTING
           date      = s_ord_dt-low
           days      = days
           months    = months
           signum    = '+'
           years     = years
         IMPORTING
           calc_date = date.

  • Identify the current week using macro

    Hi all,
    I have to write a macro to do some calculation if we are in current week and for future weeks some different calculation.
    My question is how to determine the current week.
    Please help me on this.
    Prabhat

    Dear Prabhat,
    As Edgar has suggested, you can use date functions as follows:
    Please let me know if it meets your requirement.
    Regards,
    JB

  • In CS5 can I find out which brush is currently in use so that I can slect it again later?

    in CS5 can I find out which brush is currently in use so that I can slect it again later? I can't figure this out

    Chris, I just ckecked and realized that the problem is only with CS5 64bit, I'm on windows 7. CS5 32bit works as you described.
    However even if it worked this doesn't help me anyway. I constantly change the size of the brush because I mostly paint but still need to know which brush preset I selected last. Please make  a feature that highlights the last brush  preset used - may be in a different way (color) if it doesn't match the current brush. It is real pain to find the needed brush. I have hundreds of brushes showing on my 30 inch monitor and I need them all. I spend a lot of times looking for recently used brushes. You can also implement recently used sorting order. I hope this is not very difficult to implement. Im sure that a lot of artists use many brushes like me, just look at all Photoshop painting  instructions videos, even the tutorials are boring when watching how long it takes to find and select the needed brush.

  • Is there any to find out when was the essbase application created ?

    Hi Gurus,
    Is there any to find out when was the essbase application created ?

    Unix record the last modified date for the file/directory , but noe the date created for the files.
    Is there anywhere this information is recorded in the Hyperion system ,,,like say Shared services tables...
    I was just guessing that if i could find out the date when the Applicaiton was registered to the shared services, how can we check that ?

  • How can i find out in apple order what week my ipod is ?

    How can i find out in apple order what week my ipod is ? its says it was shipped today.
    Message was edited by: Matt kidd

    dont matter now its a week 38 it sed on the invoice
    Message was edited by: Matt kidd

Maybe you are looking for