Dates in a week

hi,
i was wondering if coldfusion has a built in function that
returns the dates of a specified workweek? like if i input 28, it
gives me July 8-14, which are the dates that encompass week 28.
Thanks.

Hi,
Have a look at the Date and time functions
>>HERE<<
for a list of functions that may help you.
Below is a quick example of how you might achieve what you're
after - its not perfect but its a start.

Similar Messages

  • How to get data for current week and previous week using customer exit in Bex.

    Hi everyone,
    I have a scenario in which I need to display data for current week and previous week (based on "sy_datum" the program has to calculate current week and previous week) in Bex using  Customer exit. I have created one variable in Bex Query Designer and I have written code for the variable in CMOD. But it is not working fine, (I know that we can do the same by using offset value in Bex). Can some one guide me how to achieve my requirement using customer exit.
    Thanks in Advance,
    G S Ramanjaneyulu.

    Hi krishna,
    Thanks for your quick reply, can you have a look at my code,
    case i_vnam.
    WHEN 'ZPWK_CWK'.
    ranges : pre_week for sy-datum.
    data : start_date type DATS,
           end_date TYPE dats .
    ************FM TO GET FIRST DATE OF CURRENT WEEK ************************
    CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
      EXPORTING
        DATE_IN  = sy-datum
      IMPORTING
        DATE_OUT = start_date.   " WEEK FIRST DATE
    end_date = START_DATE + 6.   " WEEK LAST DATE
    END_DATE   = START_DATE - 1.   " PREVIOUS WEEK END DATE
    START_DATE = START_DATE - 7.   " PREVIOUS WEEK START  DATE
    **********PREVIOUS WEEK DATES IN PRE_WEEK******************
    pre_week-SIGN   = 'I'.
    pre_week-option = 'BT'.
    pre_week-LOW    = START_DATE.
    pre_week-HIGH   = END_DATE.
    APPEND  pre_week.
    CLEAR : START_DATE,END_DATE.
    endcase.
    Regards,
    G S Ramanjaneyulu.

  • I recently upgraded to iWork v9.0.3, but when I access each applications the versions are different (i.e. Pages V.4.1, Numbers V2.6, Keynote V5.1.1) with a install date of 3/18/09 -- which is not the current install date of 2 weeks ago. Why?

    I recently upgraded to iWork v9.0.3, but when I access each applications the versions are different (i.e. Pages V.4.1, Numbers V2.6, Keynote V5.1.1) with a install date of 3/18/09 -- which is not the current install date of 2 weeks ago. Shouldn't Pages, Numbers, and Keynote show version 9.?? My MAC confirned installation of v9.0.3 and even accepted the software code. With this discrepancy, how can I determine if the latest was installed and operational? I even downloading v9.0.4, 9.0.5, and 9.1. When I tried installing these downloads it popped up note stating that a later version of Keynote was already installed.

    You used the data.  Verizon can not see what it was sued for.  However your phone can see whats apps used the data.  go to settings-data usage- there will be a place that says data usage cycle.  line the dates up with your cycle.  then there will be a bar graph below that   extend bother white bars one all the way to the left and one all the way to the right.  after those are extended below that will be a list of apps,  there should be one that used over 2 gb and that will show you what app used that data in her purse

  • How to convert a date value into week value?

    How to display the date value like '20010203'
    into the week number of the year 2001?
    When i type in the following sql
    select week(chg_time) from site;
    I got this error message
    ORA-00904: invalid column name

    use the to_char function, to format the date into a week number (then you might need to convert that to a number using to_number)
    select to_char( sysdate, 'WW') from dual`
    a description of datetime formats: http://download-west.oracle.com/otndoc/oracle9i/901_doc/server.901/a90125/sql_elements4.htm#48515

  • How do I change the start date for the week from Monday to Sunday on my iPhone 5?

    How do I change the start date for the week on iCal from Monday to Sunday on my iPhone5?

    Yes. On my new iPhone 5 the iCal week begins on a Monday not a Sunday and does not give me the option to edit in settings on the phone

  • How to calculate start date of the week based on week number ?

    i need to get week number of the current date and based on that i need to calculate start date falling in the same week for last year.
    Eg. today is 31st week of year and 31st july date. so what will be the date on the 31st week of last year. i need the start date of that week.
    we can calculate the week number by select to_char(sysdate,'ww') from dual.
    DO we have a single line query for that or will it require writing a pl/sql block ?

    you can try following query
    it can be as inline but for more clean look and create it as select with include select
    with t as
    (select sysdate as dt from dual)
    select to_char(prev_year_dt - to_char(prev_year_dt, 'D') + 1, 'DD.MM.YYYY') as start_of_week from (select
    -- get day from prev year with the same week number
        case
               when to_number(to_char(add_months(dt, -12), 'WW')) > to_number(to_char(dt, 'WW')) then
                dt - (to_number(to_char(add_months(dt, -12), 'WW')) - to_number(to_char(dt, 'WW'))) * 7
               when to_number(to_char(add_months(dt, -12), 'WW')) < to_number(to_char(dt, 'WW')) then
                dt + (to_number(to_char(dt, 'WW')) - to_number(to_char(add_months(dt, -12), 'WW'))) * 7
               else
                add_months(dt, -12)
           end as prev_year_dt
      from t) t1good luck
    Sergii
    'Monday' is not first day of week in 100% ;)
    Edited by: Galbarad on Jul 30, 2012 11:00 PM

  • Oracle to Retrieve Date records in week  Give more suggestion

    Hai
    I will be passing Date values in Weeks like "from date" and "to date" data's will be '01/2009'( From date) and '06/2009' (To_date).
    01---> first week
    06--> 6th week
    Based on this first input value(01/2009) my records are displayed.
    My query now will have the condition in "Where" clause as
    Date_invoice <='03-jan-09'
    this 03-jan-09 comes from first value ie 01/2009 LAST DATE OF THE FIRST WEEK OF 2009.
    how to retrieve this?
    Give me your suggestions
    S

    AswinGousalya wrote:
    Karthik,
    Your passing the value dd/mm/yyyy format. but we are passing the value with ww/yyyyy format
    select next_day(to_date('01-01-2009','dd-mm-yyyy'),'saturday') from dual
    IF I PASS '25/2009' how to retrieve this?
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '25/2009' as dt from dual)
      2  --
      3  select next_day(trunc(to_date(substr(dt,-4),'YYYY'),'YYYY'),'saturday') +
      4         7*substr(dt,1,instr(dt,'/')-1)
      5* from t
    SQL> /
    NEXT_DAY(TRUNC(TO_DA
    27-JUN-2009 00:00:00
    SQL>

  • Find the data based on week-end ,week-day

    Hi,
    Db : 11.2.0.1
    We have the table LX_CPU_TRACK_DLY
    desc LX_CPU_TRACK_DLY
    Name Null? Type
    SYSTEMDATE DATE
    HOST_NAME VARCHAR2(50 CHAR)
    USR_PRCT NUMBER(10,5)
    SYS_PRCT NUMBER(10,5)
    WAIT_PRCT NUMBER(10,5)
    IDLE_PRCT NUMBER(10,5)
    PHYS_CPU_USD NUMBER(10,5)
    RUN_Q NUMBER(10,5)
    I want to fetch data based on week end(sat,sun) ,week day(mon-fri) on systemdate column for entire month in two seperate query.
    Any suggestions
    Thanks
    Edited by: 922884 on Nov 22, 2012 11:01 AM

    Hi,
    Thanks
    ilm-426 21-11-2012 20:38:00
    ilm-426 21-11-2012 20:39:00
    ilm-426 21-11-2012 20:40:00
    ilm-426 21-11-2012 20:41:00
    ilm-426 21-11-2012 20:42:00
    ilm-426 21-11-2012 20:43:00
    ilm-426 21-11-2012 20:44:00
    ilm-426 21-11-2012 20:45:00
    ilm-426 21-11-2012 20:46:00
    ilm-426 21-11-2012 20:47:00
    ilm-426 21-11-2012 20:48:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-426 21-11-2012 20:49:00
    ilm-426 21-11-2012 20:50:00
    ilm-426 21-11-2012 20:51:00
    ilm-426 21-11-2012 20:52:00
    ilm-426 21-11-2012 20:53:00
    ilm-426 21-11-2012 20:54:00
    ilm-426 21-11-2012 20:55:00
    ilm-426 21-11-2012 20:56:00
    ilm-426 21-11-2012 20:57:00
    ilm-426 21-11-2012 20:58:00
    ilm-426 21-11-2012 20:59:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-426 21-11-2012 21:00:00
    ilm-429 21-11-2012 20:01:00
    ilm-429 21-11-2012 20:02:00
    ilm-429 21-11-2012 20:03:00
    ilm-429 21-11-2012 20:04:00
    ilm-429 21-11-2012 20:05:00
    ilm-429 21-11-2012 20:06:00
    ilm-429 21-11-2012 20:07:00
    ilm-429 21-11-2012 20:08:00
    ilm-429 21-11-2012 20:09:00
    ilm-429 21-11-2012 20:10:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:11:00
    ilm-429 21-11-2012 20:12:00
    ilm-429 21-11-2012 20:13:00
    ilm-429 21-11-2012 20:14:00
    ilm-429 21-11-2012 20:15:00
    ilm-429 21-11-2012 20:16:00
    ilm-429 21-11-2012 20:17:00
    ilm-429 21-11-2012 20:18:00
    ilm-429 21-11-2012 20:19:00
    ilm-429 21-11-2012 20:20:00
    ilm-429 21-11-2012 20:21:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:22:00
    ilm-429 21-11-2012 20:23:00
    ilm-429 21-11-2012 20:24:00
    ilm-429 21-11-2012 20:25:00
    ilm-429 21-11-2012 20:26:00
    ilm-429 21-11-2012 20:27:00
    ilm-429 21-11-2012 20:28:00
    ilm-429 21-11-2012 20:29:00
    ilm-429 21-11-2012 20:30:00
    ilm-429 21-11-2012 20:31:00
    ilm-429 21-11-2012 20:32:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:33:00
    ilm-429 21-11-2012 20:34:00
    ilm-429 21-11-2012 20:35:00
    ilm-429 21-11-2012 20:36:00
    ilm-429 21-11-2012 20:37:00
    ilm-429 21-11-2012 20:38:00
    ilm-429 21-11-2012 20:39:00
    ilm-429 21-11-2012 20:40:00
    ilm-429 21-11-2012 20:41:00
    ilm-429 21-11-2012 20:42:00
    ilm-429 21-11-2012 20:43:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:44:00
    ilm-429 21-11-2012 20:45:00
    ilm-429 21-11-2012 20:46:00
    ilm-429 21-11-2012 20:47:00
    ilm-429 21-11-2012 20:48:00
    ilm-429 21-11-2012 20:49:00
    ilm-429 21-11-2012 20:50:00
    ilm-429 21-11-2012 20:51:00
    ilm-429 21-11-2012 20:52:00
    ilm-429 21-11-2012 20:53:00
    ilm-429 21-11-2012 20:54:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:55:00
    ilm-429 21-11-2012 20:56:00
    ilm-429 21-11-2012 20:57:00
    ilm-429 21-11-2012 20:58:00
    ilm-429 21-11-2012 20:59:00
    ilm-429 21-11-2012 21:00:00
    ilm-495 21-11-2012 20:01:00
    ilm-495 21-11-2012 20:02:00
    ilm-495 21-11-2012 20:03:00
    ilm-495 21-11-2012 20:04:00
    ilm-495 21-11-2012 20:05:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:06:00
    ilm-495 21-11-2012 20:07:00
    ilm-495 21-11-2012 20:08:00
    ilm-495 21-11-2012 20:09:00
    ilm-495 21-11-2012 20:10:00
    ilm-495 21-11-2012 20:11:00
    ilm-495 21-11-2012 20:12:00
    ilm-495 21-11-2012 20:13:00
    ilm-495 21-11-2012 20:14:00
    ilm-495 21-11-2012 20:15:00
    ilm-495 21-11-2012 20:16:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:17:00
    ilm-495 21-11-2012 20:18:00
    ilm-495 21-11-2012 20:19:00
    ilm-495 21-11-2012 20:20:00
    ilm-495 21-11-2012 20:21:00
    ilm-495 21-11-2012 20:22:00
    ilm-495 21-11-2012 20:23:00
    ilm-495 21-11-2012 20:24:00
    ilm-495 21-11-2012 20:25:00
    ilm-495 21-11-2012 20:26:00
    ilm-495 21-11-2012 20:27:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:28:00
    ilm-495 21-11-2012 20:29:00
    ilm-495 21-11-2012 20:30:00
    ilm-495 21-11-2012 20:31:00
    ilm-495 21-11-2012 20:32:00
    ilm-495 21-11-2012 20:33:00
    ilm-495 21-11-2012 20:34:00
    ilm-495 21-11-2012 20:35:00
    ilm-495 21-11-2012 20:36:00
    ilm-495 21-11-2012 20:37:00
    ilm-495 21-11-2012 20:38:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:39:00
    ilm-495 21-11-2012 20:40:00
    ilm-495 21-11-2012 20:41:00
    ilm-495 21-11-2012 20:42:00
    ilm-495 21-11-2012 20:43:00
    ilm-495 21-11-2012 20:44:00
    ilm-495 21-11-2012 20:45:00
    ilm-495 21-11-2012 20:46:00
    ilm-495 21-11-2012 20:47:00
    ilm-495 21-11-2012 20:48:00
    ilm-495 21-11-2012 20:49:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:50:00
    ilm-495 21-11-2012 20:51:00
    ilm-495 21-11-2012 20:52:00
    ilm-495 21-11-2012 20:53:00
    ilm-495 21-11-2012 20:54:00
    ilm-495 21-11-2012 20:55:00
    ilm-495 21-11-2012 20:56:00
    ilm-495 21-11-2012 20:57:00
    ilm-495 21-11-2012 20:58:00
    ilm-495 21-11-2012 20:59:00
    ilm-495 21-11-2012 21:00:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:01:00
    ilm-500 21-11-2012 20:02:00
    ilm-500 21-11-2012 20:03:00
    ilm-500 21-11-2012 20:04:00
    ilm-500 21-11-2012 20:05:00
    ilm-251 21-11-2012 20:01:00
    ilm-251 21-11-2012 20:02:00
    ilm-251 21-11-2012 20:03:00
    ilm-251 21-11-2012 20:04:00
    ilm-251 21-11-2012 20:05:00
    ilm-251 21-11-2012 20:06:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:07:00
    ilm-251 21-11-2012 20:08:00
    ilm-251 21-11-2012 20:09:00
    ilm-251 21-11-2012 20:10:00
    ilm-251 21-11-2012 20:11:00
    ilm-251 21-11-2012 20:12:00
    ilm-251 21-11-2012 20:13:00
    ilm-251 21-11-2012 20:14:00
    ilm-251 21-11-2012 20:15:00
    ilm-251 21-11-2012 20:16:00
    ilm-251 21-11-2012 20:17:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:18:00
    ilm-251 21-11-2012 20:19:00
    ilm-251 21-11-2012 20:20:00
    ilm-251 21-11-2012 20:21:00
    ilm-251 21-11-2012 20:22:00
    ilm-251 21-11-2012 20:23:00
    ilm-251 21-11-2012 20:24:00
    ilm-251 21-11-2012 20:25:00
    ilm-251 21-11-2012 20:26:00
    ilm-251 21-11-2012 20:27:00
    ilm-251 21-11-2012 20:28:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:06:00
    ilm-500 21-11-2012 20:07:00
    ilm-500 21-11-2012 20:08:00
    ilm-500 21-11-2012 20:09:00
    ilm-500 21-11-2012 20:10:00
    ilm-500 21-11-2012 20:11:00
    ilm-500 21-11-2012 20:12:00
    ilm-500 21-11-2012 20:13:00
    ilm-500 21-11-2012 20:14:00
    ilm-500 21-11-2012 20:15:00
    ilm-500 21-11-2012 20:16:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:17:00
    ilm-500 21-11-2012 20:18:00
    ilm-500 21-11-2012 20:19:00
    ilm-500 21-11-2012 20:20:00
    ilm-500 21-11-2012 20:21:00
    ilm-500 21-11-2012 20:22:00
    ilm-500 21-11-2012 20:23:00
    ilm-500 21-11-2012 20:24:00
    ilm-500 21-11-2012 20:25:00
    ilm-500 21-11-2012 20:26:00
    ilm-500 21-11-2012 20:27:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:28:00
    ilm-500 21-11-2012 20:29:00
    ilm-500 21-11-2012 20:30:00
    ilm-500 21-11-2012 20:31:00
    ilm-500 21-11-2012 20:32:00
    ilm-500 21-11-2012 20:33:00
    ilm-500 21-11-2012 20:34:00
    ilm-500 21-11-2012 20:35:00
    ilm-500 21-11-2012 20:36:00
    ilm-500 21-11-2012 20:37:00
    ilm-500 21-11-2012 20:38:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:39:00
    ilm-500 21-11-2012 20:40:00
    ilm-500 21-11-2012 20:41:00
    ilm-500 21-11-2012 20:42:00
    ilm-500 21-11-2012 20:43:00
    ilm-500 21-11-2012 20:44:00
    ilm-500 21-11-2012 20:45:00
    ilm-500 21-11-2012 20:46:00
    ilm-500 21-11-2012 20:47:00
    ilm-500 21-11-2012 20:48:00
    ilm-500 21-11-2012 20:49:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:50:00
    ilm-500 21-11-2012 20:51:00
    ilm-500 21-11-2012 20:52:00
    ilm-500 21-11-2012 20:53:00
    ilm-500 21-11-2012 20:54:00
    ilm-500 21-11-2012 20:55:00
    ilm-500 21-11-2012 20:56:00
    ilm-500 21-11-2012 20:57:00
    ilm-500 21-11-2012 20:58:00
    ilm-500 21-11-2012 20:59:00
    ilm-500 21-11-2012 21:00:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:29:00
    ilm-251 21-11-2012 20:30:00
    ilm-251 21-11-2012 20:31:00
    ilm-251 21-11-2012 20:32:00
    ilm-251 21-11-2012 20:33:00
    ilm-251 21-11-2012 20:34:00
    ilm-251 21-11-2012 20:35:00
    ilm-251 21-11-2012 20:36:00
    ilm-251 21-11-2012 20:37:00
    ilm-251 21-11-2012 20:38:00
    ilm-251 21-11-2012 20:39:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:40:00
    ilm-251 21-11-2012 20:41:00
    ilm-251 21-11-2012 20:42:00
    ilm-251 21-11-2012 20:43:00
    ilm-251 21-11-2012 20:44:00
    ilm-251 21-11-2012 20:45:00
    ilm-251 21-11-2012 20:46:00
    ilm-251 21-11-2012 20:47:00
    ilm-251 21-11-2012 20:48:00
    ilm-251 21-11-2012 20:49:00
    ilm-251 21-11-2012 20:50:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:51:00
    ilm-251 21-11-2012 20:52:00
    ilm-251 21-11-2012 20:53:00
    ilm-251 21-11-2012 20:54:00
    ilm-251 21-11-2012 20:55:00
    ilm-251 21-11-2012 20:56:00
    ilm-251 21-11-2012 20:57:00
    ilm-251 21-11-2012 20:58:00
    ilm-251 21-11-2012 20:59:00
    ilm-251 21-11-2012 21:00:00
    ilm-425 21-11-2012 20:01:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:02:00
    ilm-425 21-11-2012 20:03:00
    ilm-425 21-11-2012 20:04:00
    ilm-425 21-11-2012 20:05:00
    ilm-425 21-11-2012 20:06:00
    ilm-425 21-11-2012 20:07:00
    ilm-425 21-11-2012 20:08:00
    ilm-425 21-11-2012 20:09:00
    ilm-425 21-11-2012 20:10:00
    ilm-425 21-11-2012 20:11:00
    ilm-425 21-11-2012 20:12:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:13:00
    ilm-425 21-11-2012 20:14:00
    ilm-425 21-11-2012 20:15:00
    ilm-425 21-11-2012 20:16:00
    ilm-425 21-11-2012 20:17:00
    ilm-425 21-11-2012 20:18:00
    ilm-425 21-11-2012 20:19:00
    ilm-425 21-11-2012 20:20:00
    ilm-425 21-11-2012 20:21:00
    ilm-425 21-11-2012 20:22:00
    ilm-425 21-11-2012 20:23:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:24:00
    ilm-425 21-11-2012 20:25:00
    ilm-425 21-11-2012 20:26:00
    ilm-425 21-11-2012 20:27:00
    ilm-425 21-11-2012 20:28:00
    ilm-425 21-11-2012 20:29:00
    ilm-425 21-11-2012 20:30:00
    ilm-425 21-11-2012 20:31:00
    ilm-425 21-11-2012 20:32:00
    ilm-425 21-11-2012 20:33:00
    ilm-425 21-11-2012 20:34:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:35:00
    ilm-425 21-11-2012 20:36:00
    ilm-425 21-11-2012 20:37:00
    ilm-425 21-11-2012 20:38:00
    ilm-425 21-11-2012 20:39:00
    ilm-425 21-11-2012 20:40:00
    ilm-425 21-11-2012 20:41:00
    ilm-425 21-11-2012 20:42:00
    ilm-425 21-11-2012 20:43:00
    ilm-425 21-11-2012 20:44:00
    ilm-425 21-11-2012 20:45:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:46:00
    ilm-425 21-11-2012 20:47:00
    ilm-425 21-11-2012 20:48:00
    ilm-425 21-11-2012 20:49:00
    ilm-425 21-11-2012 20:50:00
    ilm-425 21-11-2012 20:51:00
    ilm-425 21-11-2012 20:52:00
    ilm-425 21-11-2012 20:53:00
    ilm-425 21-11-2012 20:54:00
    ilm-425 21-11-2012 20:55:00
    ilm-425 21-11-2012 20:56:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:57:00
    ilm-425 21-11-2012 20:58:00
    ilm-425 21-11-2012 20:59:00
    ilm-425 21-11-2012 21:00:00
    ilm-428 21-11-2012 20:01:00
    ilm-428 21-11-2012 20:02:00
    ilm-428 21-11-2012 20:03:00
    ilm-428 21-11-2012 20:04:00
    ilm-428 21-11-2012 20:05:00
    ilm-428 21-11-2012 20:06:00
    ilm-428 21-11-2012 20:07:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:08:00
    ilm-428 21-11-2012 20:09:00
    ilm-428 21-11-2012 20:10:00
    ilm-428 21-11-2012 20:11:00
    ilm-428 21-11-2012 20:12:00
    ilm-428 21-11-2012 20:13:00
    ilm-428 21-11-2012 20:14:00
    ilm-428 21-11-2012 20:15:00
    ilm-428 21-11-2012 20:16:00
    ilm-428 21-11-2012 20:17:00
    ilm-428 21-11-2012 20:18:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:19:00
    ilm-428 21-11-2012 20:20:00
    ilm-428 21-11-2012 20:21:00
    ilm-428 21-11-2012 20:22:00
    ilm-428 21-11-2012 20:23:00
    ilm-428 21-11-2012 20:24:00
    ilm-428 21-11-2012 20:25:00
    ilm-428 21-11-2012 20:26:00
    ilm-428 21-11-2012 20:27:00
    ilm-428 21-11-2012 20:28:00
    ilm-428 21-11-2012 20:29:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:30:00
    ilm-428 21-11-2012 20:31:00
    ilm-428 21-11-2012 20:32:00
    ilm-428 21-11-2012 20:33:00
    ilm-428 21-11-2012 20:34:00
    ilm-428 21-11-2012 20:35:00
    ilm-428 21-11-2012 20:36:00
    ilm-428 21-11-2012 20:37:00
    ilm-428 21-11-2012 20:38:00
    ilm-428 21-11-2012 20:39:00
    ilm-428 21-11-2012 20:40:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:41:00
    ilm-428 21-11-2012 20:42:00
    ilm-428 21-11-2012 20:43:00
    ilm-428 21-11-2012 20:44:00
    ilm-428 21-11-2012 20:45:00
    ilm-428 21-11-2012 20:46:00
    ilm-428 21-11-2012 20:47:00
    ilm-428 21-11-2012 20:48:00
    ilm-428 21-11-2012 20:49:00
    ilm-428 21-11-2012 20:50:00
    ilm-428 21-11-2012 20:51:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:52:00
    ilm-428 21-11-2012 20:53:00
    ilm-428 21-11-2012 20:54:00
    ilm-428 21-11-2012 20:55:00
    ilm-428 21-11-2012 20:56:00
    ilm-428 21-11-2012 20:57:00
    ilm-428 21-11-2012 20:58:00
    ilm-428 21-11-2012 20:59:00
    ilm-428 21-11-2012 21:00:00
    ilm-495 21-11-2012 20:01:00
    ilm-495 21-11-2012 20:02:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:03:00
    ilm-495 21-11-2012 20:04:00
    ilm-495 21-11-2012 20:05:00
    ilm-495 21-11-2012 20:06:00
    ilm-495 21-11-2012 20:07:00
    ilm-495 21-11-2012 20:08:00
    ilm-495 21-11-2012 20:09:00
    ilm-495 21-11-2012 20:10:00
    ilm-495 21-11-2012 20:11:00
    ilm-495 21-11-2012 20:12:00
    ilm-495 21-11-2012 20:13:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:14:00
    ilm-495 21-11-2012 20:15:00
    ilm-495 21-11-2012 20:16:00
    ilm-495 21-11-2012 20:17:00
    ilm-495 21-11-2012 20:18:00
    ilm-495 21-11-2012 20:19:00
    ilm-495 21-11-2012 20:20:00
    ilm-495 21-11-2012 20:21:00
    ilm-495 21-11-2012 20:22:00
    ilm-495 21-11-2012 20:23:00
    ilm-495 21-11-2012 20:24:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:25:00
    ilm-495 21-11-2012 20:26:00
    ilm-495 21-11-2012 20:27:00
    ilm-495 21-11-2012 20:28:00
    ilm-495 21-11-2012 20:29:00
    ilm-495 21-11-2012 20:30:00
    ilm-495 21-11-2012 20:31:00
    ilm-495 21-11-2012 20:32:00
    ilm-495 21-11-2012 20:33:00
    ilm-495 21-11-2012 20:34:00
    ilm-495 21-11-2012 20:35:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:36:00
    ilm-495 21-11-2012 20:37:00
    ilm-495 21-11-2012 20:38:00
    ilm-495 21-11-2012 20:39:00
    ilm-495 21-11-2012 20:40:00
    ilm-495 21-11-2012 20:41:00
    ilm-495 21-11-2012 20:42:00
    ilm-495 21-11-2012 20:43:00
    ilm-495 21-11-2012 20:44:00
    ilm-495 21-11-2012 20:45:00
    ilm-495 21-11-2012 20:46:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:47:00
    ilm-495 21-11-2012 20:48:00
    ilm-495 21-11-2012 20:49:00
    ilm-495 21-11-2012 20:50:00
    ilm-495 21-11-2012 20:51:00
    ilm-495 21-11-2012 20:52:00
    ilm-495 21-11-2012 20:53:00
    ilm-495 21-11-2012 20:54:00
    ilm-495 21-11-2012 20:55:00
    ilm-495 21-11-2012 20:56:00
    ilm-495 21-11-2012 20:57:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:58:00
    ilm-495 21-11-2012 20:59:00
    ilm-495 21-11-2012 21:00:00
    1620 rows selected.
    Thanks

  • Any Function Module to get date by passing week and year

    Hi,
       Is there any Function Module available to get date by passing week and year. For example, Week 24, Year 2005 and you get the date.
    Regards,
    Mira

    WEEK_GET_FIRST_DAY
    pass 'YYYYWW' (200524) to WEEK parameter it will give you the week start date
    Raja

  • Get the starting date and end date of all weeks of a given month and year

    hey Guys so far I have this.. but I am having difficulty limiting it by month. I am using Oracle 11 release 1
    Select year, week, next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'sun' ) as weekStartDate,
    next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'sun' ) +6 as weekEndDate
    from (Select '2012' year, rownum week from all_objects where rownum<=5)
    Thanks in advance
    Edited by: Aj05 on Jan 12, 2012 7:42 AM

    First you need to define week starting day. If, for example it is Monday:
    TRUNC(TRUNC(&dt,'YYYY') -1,'IW')is first Monday of the year. Then:
    SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
      FROM  DUAL
      CONNECT BY LEVEL <= 53
    /will give start dates of all weeks within &dt year. And:
    WITH t AS (
               SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
                FROM  DUAL
                CONNECT BY LEVEL <= 53
    SELECT  week_start_date,
            week_start_date + 6 week_end_date
      FROM  t
      WHERE week_start_date > TRUNC(&dt,'MM')
        AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
    /will give you week start/end dates within &dt year and month. For example:
    SQL> DEFINE dt="DATE '2012-03-17'"
    SQL> WITH t AS (
      2             SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
      3              FROM  DUAL
      4              CONNECT BY LEVEL <= 53
      5            )
      6  SELECT  week_start_date,
      7          week_start_date + 6 week_end_date
      8    FROM  t
      9    WHERE week_start_date > TRUNC(&dt,'MM')
    10      AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
    11  /
    old   2:            SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
    new   2:            SELECT TRUNC(TRUNC(DATE '2012-03-17','YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
    old   9:   WHERE week_start_date > TRUNC(&dt,'MM')
    new   9:   WHERE week_start_date > TRUNC(DATE '2012-03-17','MM')
    old  10:     AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
    new  10:     AND week_start_date < ADD_MONTHS(TRUNC(DATE '2012-03-17','MM'),1)
    WEEK_STAR WEEK_END_
    05-MAR-12 11-MAR-12
    12-MAR-12 18-MAR-12
    19-MAR-12 25-MAR-12
    26-MAR-12 01-APR-12
    SQL> SY.

  • Get the first and the last date of a week

    Hi all
    I need to get the first and the last date of a specific week.
    I need a function that returns two date passing it just one date.
    The function has to calculate the first and the last date of the week of the argument date.
    hope to be clear
    regards

    goiters,
    I need to get the first and the last date of a specific week.Yup, and what's the first day of the week in your part of the world, is it Sunday or Monday?
    I need a function that returns two date passing it just one date.No you don't, just add 7 days to the start of the week.
    hope to be clearWell, you can hope.
    Keith.
    Message was edited by: corlettk - now I hope to clear ;-)

  • How to set default date of 3 weeks(21 days) from today's date during page load?

    I want to show the default date as 3 weeks from today's date during page load.
    For example ,i have given as adf.CurrentDate + 21 in EO for the attribute 'DueDate'. But it is showing me the date as 9.7.2013. 3 weeks default date is not getting set.If i give adf.currentDate also ,it not giving me today's date,it showing the 9.7.2013 only.Kindly provide your suggestions to set the default date as 3 weeks from today's date during page load.Thanks in advance.

    Hi,
    when you set the value on the entity level then you don't want to show it during page load but when the field is empty ? Correct? if so then the use case is a different one. The easiest way to implement this would be to create a Rowimpl class (Java option) and then in the get method of the entity attribute check if the value is null and if it is, set it to the current date + 21 days. This way all rows will be set with the 3 weeks due date but fields are not overridden each time the row is queried
    Frank

  • Getting the start  and end dates of the week

    Hi,
    I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
    Thanks

    There is no simple way. It has to be a math calculation.
    There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
    Hope this helps to get you started.
    - Venkat Dhurjati.

  • Adding a summary column in a table which contains the start and end dates in the week

    Hi,
    I've got a DIMENSION DATE table and want to add in another column which shows the start and end date of the week.
    See below, the new column is WEEKOFYEARTEXT.
    Does anybody know how i may generate this column using SQL and using the existing columns?
    Umar Javed

    See:  http://www.sqlusa.com/bestpractices/datetimeconversion/
    DECLARE @Year INT = '2015';
    WITH cteDays AS (SELECT DayOfYear=Dateadd(dd, number,
    CONVERT(DATE, CONVERT(char(4),@Year)+'0101'))
    FROM master.dbo.spt_values WHERE type='P'),
    CTE AS (SELECT DayOfYear, WeekOfYear=DATEPART(week,DayOfYear)
    FROM cteDays WHERE YEAR(DayOfYear)= @YEAR)
    SELECT WeekOfYear, StartOfWeek=MIN(DayOfYear), EndOfWeek=MAX(DayOfYear)
    FROM CTE GROUP BY WeekOfYear ORDER BY WeekOfYear;
    WeekOfYear StartOfWeek EndOfWeek
    1 2015-01-01 2015-01-03
    2 2015-01-04 2015-01-10
    3 2015-01-11 2015-01-17
    4 2015-01-18 2015-01-24
    5 2015-01-25 2015-01-31
    6 2015-02-01 2015-02-07
    7 2015-02-08 2015-02-14
    8 2015-02-15 2015-02-21
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • How to aggregate a column based date column (for weekly single row)?

    How to aggregate a column based date column (for weekly single row)?

    Hi,
    Consider the below statement for daily bases which is ok
    SELECT ID, DATE, SUM(AMOUNT) FROM TABLE_NAME GROUP BY ID, DATE ORDER BY ID, DATE
    The same like the above statement, I want output on weekly, fortnightly, and monthly bases, How to do this? Need your help...

  • Date find from week of year.

    Hi all,
    I have week number values of the year, ie values are ranging from 1-52.
    i want to find out start and end dates of the week. do we have any functions provided by oracle to achieve this.
    Please help me.

    date find from year of week.

Maybe you are looking for

  • How to create a group list in the directoty of contacts?

    How do I make a group to text or email from some of my contacts?

  • PO with 2 vendor

    Dear All I want to create a PO with 2 Vendor ( One vendor for purchase Material and one Vendor for Import and Freight). Could you please tell me how to do. Thanks and Best regard. Thang

  • Problem on open Preference in CMC: Unable to compile class for JSP

    Hi all, I meet problem when opening Preference in CMC. When I click "Web Intelligence" or "Desktop Intelligence", the following message will be display: An error has occurred: Unable to compile class for JSP I have check for catalina.out in tomcat, f

  • Multiple sequence view to the same batch

    Dear All, When I use Batch model of two stations I would like to have two sequences view as I get two executions view or two reports view. The main gold is to have for each Socket three tabsequence view\Execution view\Report view. Tnx

  • ClassNotFound while narrowing JNDI ref to ejb home interface

    Hello everybody I'm quite new to BEA WebLogic. I deployed Jasmine application on Bea WLS7 (example app from Mastering EJB 2). But when i tried to use login servlet, it threw an exception ClassNotFound when narrowing ejb home interface (obtained via J