Function to list the month from a date range?

I would like to know what the function is that would take a look at a date range, and extract the month name
Here is how I would like it to come out:

Hello
The following sample tables are along your original scheme using month name to filter the data.
2014 (excerpt)
A1  month
A2  =MONTHNAME(MONTH(B2))
A3  =MONTHNAME(MONTH(B3))
A4  =MONTHNAME(MONTH(B4))
B1  date
B2  2013-01-15
B3  2013-01-20
B4  2013-01-27
C1  category
C2  A
C3  B
C4  C
D1  amount
D2  100
D3  50
D4  20
January
A1  category
A2  A
A3  B
A4  C
A5  D
A6  E
A7  F
A8  G
A9  H
B1  totals
B2  =SUMIFS(2014::D,2014::A,C$1,2014::C,A2)
B3  =SUMIFS(2014::D,2014::A,C$1,2014::C,A3)
B4  =SUMIFS(2014::D,2014::A,C$1,2014::C,A4)
B5  =SUMIFS(2014::D,2014::A,C$1,2014::C,A5)
B6  =SUMIFS(2014::D,2014::A,C$1,2014::C,A6)
B7  =SUMIFS(2014::D,2014::A,C$1,2014::C,A7)
B8  =SUMIFS(2014::D,2014::A,C$1,2014::C,A8)
B9  =SUMIFS(2014::D,2014::A,C$1,2014::C,A9)
C1  January
C2 
C3 
C4 
C5 
C6 
C7 
C8 
C9 
Notes.
Formula in January::B2 can be filled down across B2:B9.
The target month name is defined in January::C1.
February table is the same as January table except for the value in C1.
And the following sample tables are using date per se instead of month name to filter the data. In this scheme, you don't need month column in source table but the retrieving formulae in destination table become more complex.
2014 (excerpt)
A1  date
A2  2013-01-15
A3  2013-01-20
A4  2013-01-27
B1  category
B2  A
B3  B
B4  C
C1  amount
C2  100
C3  50
C4  20
January
A1  category
A2  A
A3  B
A4  C
A5  D
A6  E
A7  F
A8  G
A9  H
B1  totals
B2  =SUMIFS(2014::C,2014::B,A2,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B3  =SUMIFS(2014::C,2014::B,A3,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B4  =SUMIFS(2014::C,2014::B,A4,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B5  =SUMIFS(2014::C,2014::B,A5,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B6  =SUMIFS(2014::C,2014::B,A6,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B7  =SUMIFS(2014::C,2014::B,A7,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B8  =SUMIFS(2014::C,2014::B,A8,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
B9  =SUMIFS(2014::C,2014::B,A9,2014::A,">="&EOMONTH(C$1,-1)+1,2014::A,"<="&EOMONTH(C$1,0))
C1  2013-01-01
C2 
C3 
C4 
C5 
C6 
C7 
C8 
C9 
Notes.
Formula in January::B2 can be filled down across January::B2:B9.
The target month is defined in January::C1, which can be any date in target month, e.g., 2013-01-01, 2013-01-20, etc. The formulae in B will retrieve data with date in range: 2013-01-01 <= [date] <= 2013-01-31.
February table is the same as January table except for the value in C1.
Tables are built in Numbers v2.
Hope this may help,
H
EDIT: Replaced the last table with the correct one. (Formulae in B are correct)

Similar Messages

  • How to get name of the month from current date.

    Hi,
       How to get the name of the month from current date.
    Thanks,
    Senthil

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

  • Get the month from a date column with the calculated column

    I am trying to get the month from a date field with the help of calculated column. However I get this syntax error whenever I want to submit the formula:
    Error 
    The formula contains a syntax error or is not supported. 
    the default language of our site is German and [datum, von] is a date field.

    Hi,
    I have created two columns
    Current MM-YY
    Calculated (calculation based on other columns)
    Today
    Date and Time
    Current MM-YY is calculated value with formula as
    =TEXT(Today,"mmmm")
    But the output shows as December instead of May.
    I have tried =TEXT([Datum, von];"mmmm") but no help.
    I am trying to populated the column automatically with current month..ex: if its May the field should show May, next month it should show June an so on.
    Any kind help is grateful.
    Regards,
    Pradeep

  • Get months from a date range comparing event date

    Hi All,
    Below is the data
    CREATE TABLE #Coverage(
    EmployeeID INT,
    EmployeeName VARCHAR(20),
    CoverageName VARCHAR(50),
    CoverageAmount Decimal,
    CoveredBy VARCHAR(20),
    EventDate DATETIME,
    CoverageStartDate DATETIME,
    CoverageEndDate DATETIME
    INSERT INTO #coverage VALUES (8,'Lara','Employee + Children',213.60,'EmployeeContribution','2013-10-01','2013-10-01','2014-05-31'),
    (8,'LAra','Employee + Children', 606.31 ,'CompanyContribution' ,'2013-10-01','2013-10-01','2014-05-31'),
    (8,'LAra','Employee Only' ,0.00 ,'EmployeeContribution' ,NULL ,'2013-06-01','2014-05-31'),
    (8,'LAra','Employee Only' ,431.55 ,'CompanyContribution' ,NULL ,'2013-06-01','2014-05-31'),
    (8,'LAra','Employee Only' ,81.42 ,'EmployeeContribution' ,NULL ,'2012-06-01','2013-05-31'),
    (8,'LAra','Employee Only' ,420.93 ,'CompanyContribution' ,NULL ,'2012-06-01','2013-05-31')
    SELECT * FROM #Coverage
    drop table #coverage
    and expected out put for the year 2013
    EmployeeID
    EmployeeName
    CoverageName
    CoverageAmount
    CoveredBy
    Month
    Year
    8
    Lara
    Employee Only
    81
    Employee Contibution
    1
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    1
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    2
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    2
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    3
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    3
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    4
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    4
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    5
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    5
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    6
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    6
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    7
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    7
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    8
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    8
    2013
    8
    Lara
    Employee Only
    81
    Employee Contibution
    9
    2013
    8
    Lara
    Employee Only
    421
    Company Contribution
    9
    2013
    8
    Lara
    Employee +Children
    214
    Employee Contibution
    10
    2013
    8
    Lara
    Employee +Children
    606
    Company Contribution
    10
    2013
    8
    Lara
    Employee +Children
    214
    Employee Contibution
    11
    2013
    8
    Lara
    Employee +Children
    606
    Company Contribution
    11
    2013
    8
    Lara
    Employee +Children
    214
    Employee Contibution
    12
    2013
    8
    Lara
    Employee +Children
    606
    Company Contribution
    12
    2013
    Can any one help me out with this.
    Thanks!

    This gives your resultset.
    I've added the cte to give a newenddate because your dataset doesn't close off the previous one in all cases and gave duplicates - you can remove this if it is a mistake in the data. Also you would need to add the employee to the partition to run on multiple
    employees.
    declare
    @Coverage TABLE (
    EmployeeID
    INT,
    EmployeeName
    VARCHAR(20),
    CoverageName
    VARCHAR(50),
    CoverageAmount
    Decimal,
    CoveredBy
    VARCHAR(20),
    EventDate
    DATETIME,
    CoverageStartDate
    DATETIME,
    CoverageEndDate
    DATETIME
    INSERT
    INTO @Coverage
    VALUES (8,'Lara','Employee + Children',213.60,'EmployeeContribution','2013-10-01','2013-10-01','2014-05-31'),
    (8,'LAra','Employee
    + Children',  606.31
    ,'CompanyContribution'    
    ,'2013-10-01','2013-10-01','2014-05-31'),
    (8,'LAra','Employee
    Only'               
    ,0.00  ,'EmployeeContribution'   
    ,NULL  ,'2013-06-01','2014-05-31'),
    (8,'LAra','Employee
    Only'               
    ,431.55      
    ,'CompanyContribution'    
    ,NULL  ,'2013-06-01','2014-05-31'),
    (8,'LAra','Employee
    Only'               
    ,81.42 ,'EmployeeContribution'   
    ,NULL  ,'2012-06-01','2013-05-31'),
    (8,'LAra','Employee
    Only'               
    ,420.93      
    ,'CompanyContribution'    
    ,NULL  ,'2012-06-01','2013-05-31')
    SELECT
    * FROM
    @Coverage
    ;with
    ctee1 as
    select
    *, seq
    = row_number()
    over (partition
    by coveredby
    order by coveragestartdate)
    from
    @Coverage
    ,ctee
    as
    select
    c1.*,
    newenddte = coalesce(c2.coveragestartdate-1,
    c1.coverageenddate)
    from
    ctee1 c1
    left
    join ctee1
    c2
    on
    c1.coveredby
    = c2.coveredby
    and
    c1.seq
    = c2.seq-1
    cte1 as
    select
    dtestrt =
    convert(datetime,'20130101'),
    dteend =
    convert(datetime,'20131201')
    ,cte
    as
    select
    dtestrt =
    cte1.dtestrt,
    dteend =
    dateadd(mm,1,cte1.dtestrt)-1,
    mth =
    month(cte1.dtestrt),
    yr =
    year(cte1.dtestrt)
    from cte1
    union
    all
    select
    dtestrt =
    dateadd(mm,1,cte.dtestrt),
    dteend =
    dateadd(mm,2,cte.dtestrt)-1,
    mth =
    month(dateadd(mm,1,cte.dtestrt)),
    yr =
    year(dateadd(mm,1,cte.dtestrt))
    from cte,
    cte1 where
    cte.dtestrt
    < cte1.dteend-1
    select
    c.EmployeeID,
    c.EmployeeName,
    c.CoverageName,
    c.CoverageAmount,
    c.CoveredBy,
    cte.mth,
    cte.yr,
    cte.dtestrt,
    cte.dteend
    from
    cte
    join
    ctee c
    on
    cte.dtestrt
    <= c.newenddte 
    and cte.dteend
    >= c.CoverageStartDate
    order
    by c.EmployeeID,
    cte.dtestrt

  • How to get the first day in the month from a domain date ?

    Hi,
    I like to know how to get the first day in the month from a domain date?
    Thanks
    Stephen

    Hi Gokul...
    Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
    Its similar to the above one but instead of writing case statement you can achive the following.
    data : w_res type i,
             w_data type d,
    w_res = w_date mod 7.
    w_date = w_date - w_res.
    write w_date.
    This works.
    Regards,
    Siddarth

  • How to subtract the month from an item type Date Picker

    Hi everybody!!
    I´m building an application (V4.2) in wich customer introduce a date (item P11_F_ACTIVIDAD, Display as Date Picker). I need to sustract the month from that field and use it in a SQL query to fetch all rows from a table that met that condition (column F_ACTIVIDAD) . The WHERE clause should has something like this: WHERE substr(to_char(h.F_ACTIVIDAD,'ddmmyyyy'),3,2)= substr(to_char(:P11_F_ACTIVIDAD,'ddmmyyyy'),3,2)  but SQL engine does not see ":P11_F_ACTIVIDAD" like a column name..... Of course, it is not a column name.
    I appreciate recomend me an idea to overcome this issue.
    Thanks so much!
    Luis

    Lecc23 wrote:
    Hi everybody!!
    I´m building an application (V4.2) in wich customer introduce a date (item P11_F_ACTIVIDAD, Display as Date Picker). I need to sustract the month from that field and use it in a SQL query to fetch all rows from a table that met that condition (column F_ACTIVIDAD) . The WHERE clause should has something like this: WHERE substr(to_char(h.F_ACTIVIDAD,'ddmmyyyy'),3,2)= substr(to_char(:P11_F_ACTIVIDAD,'ddmmyyyy'),3,2)  but SQL engine does not see ":P11_F_ACTIVIDAD" like a column name..... Of course, it is not a column name.
    I appreciate recomend me an idea to overcome this issue.
    Thanks so much!
    Luis
    In APEX, items can certainly be used as bound variables in a SQL statement; like this.
    SELECT emp.ename,
           emp.hiredate,
           EXTRACT (MONTH FROM emp.hiredate) hiredate_month,
           EXTRACT (MONTH FROM :p11_f_actividad) datepicker_month
      FROM emp
    WHERE SUBSTR (TO_CHAR (emp.hiredate, 'ddmmyyyy'), 3, 2) =
              SUBSTR (TO_CHAR ( :p11_f_actividad, 'ddmmyyyy'), 3, 2)
    Jeff

  • How to - get first DAY of the month from the date ?

    Hi
    pls help

    hi,
    data : DAYNR LIKE HRVSCHED-DAYNR,
    DAYTXT LIKE HRVSCHED-DAYTXT.
    data langu like sy-langu value 'EN'.
    Parameters PDATE LIKE SY-DATUM.
    PDATE+6(02) = '01'.
    CALL FUNCTION 'RH_GET_DATE_DAYNAME'
    EXPORTING
    LANGU = LANGU
    DATE = PDATE
    CALID =
    IMPORTING
    DAYNR = DAYNR
    DAYTXT = DAYTXT
    DAYFREE =
    EXCEPTIONS
    NO_LANGU = 1
    NO_DATE = 2
    NO_DAYTXT_FOR_LANGU = 3
    INVALID_DATE = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE :/ PDATE, DAYNR, DAYTXT.
       (OR)
    Try..
    DATA:DAYNR  LIKE  HRVSCHED-DAYNR,
         DAYTXT LIKE  HRVSCHED-DAYTXT,
         DAYFREE LIKE  HRVSCHED-NODAY.
    DATA:LANGU LIKE  SY-LANGU ,
         DATE LIKE  SY-DATUM,
         CALID LIKE  P1027-CALID VALUE 'US'.
    date = sy-datum.
    date+6(2) = 01.           "----->to get the first day .
    *first day of the month
    write:/ 'First date of the month', date.
    *Day name
    CALL FUNCTION 'RH_GET_DATE_DAYNAME'
      EXPORTING
        langu                     = SY-LANGU
        date                      = DATE
        CALID                     = CALID
    IMPORTING
       DAYNR                     = DAYNR
       DAYTXT                    = DAYTXT
       DAYFREE                   = DAYFREE
    EXCEPTIONS
       NO_LANGU                  = 1
       NO_DATE                   = 2
       NO_DAYTXT_FOR_LANGU       = 3
       INVALID_DATE              = 4
       OTHERS                    = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE:/ DAYTXT.
    Don't forget to reward if useful....

  • How to get the Month from no of week

    Dear Friendz
    I have one variable which contains the value as 200547 where 2005 is the year and 47 is the no of week.
    now i want to get the month from the no of week.
    so how to solve the problem???
    thank in advance.
    Regards
    nilesh shete

    Hi,
    report ztest.
    data: myweek type SCAL-WEEK,
          mydate type SCAL-DATE,
          mymonth(2).
    myweek = '200547'.
    call function 'WEEK_GET_FIRST_DAY'
         EXPORTING
              WEEK   = myweek
         IMPORTING
              DATE   = mydate
         EXCEPTIONS
              others = 9.
    mymonth = mydate+4(2).
    write mymonth.
    Svetlin

  • List Months between a date range

    Hi, I'm trying to list the months between a given date range in an ABAP report to generate a MIS report(ALV).. Say I have 2 date ranges, 01.01.2006 to 01.04.2006.. I want to list
    Jan 2006
    Feb 2006
    Mar 2006
    Apr 2006.. Any FM in SAP to get this OP..

    hi vivek,
    use this function module to get months beween two dates
    1. MONTHS_BETWEEN_TWO_DATES   or
    2. MONTHS_BETWEEN_TWO_DATES_NEW
    please reward the point if you are satisfied with answer
    thanks,
    john.

  • How to extract month from given date in bpel??

    Hi friends hi need some information  regarding dates in BPEL.. Here in these I taking date as input which type is also date type.Then required output is month in number format.. Here I  used Assign activity and in assign activity,I took month-from-date and passed argument to this function.But it raised an error "internal Xpath error" Any one can you give me ideas please....

    First convert you date into datetime and then use the month-from-datetime function.
    Regards,
    Anshul

  • Calculating Length of Service - Splitting out the months from the years

    Hi folks,
    I was wondering if anyone might have the answer to a little employee length of service conundrum. I'm trying to construct a calculation that will calculate an employee's length of service in whole Years worked only. I also need to produce a second calculation to calculate length of service in whole months worked only but with the whole years worth of months deducted from it.
    For example if a persons hire date is 05-Feb-2001 the two calculations would return:
    Length of service Years 7
    Length of service Months 6
    The following calc will generate length of service as a decimalised number:
    MONTHS_BETWEEN(SYSDATE,Hire Date) /12
    So for my example person I get 7.64 years.
    I need to somehow round this down to the nearest 1 to get whole years service. I cannot use the ROUND function because it rounds to the nearest, so when a number is n.5 or higher it'll round up and will only round down when the number is n.49 or lower. grrr.
    My next mission is to work out months service based on whats after the decimal place. If I could round the Length of service Years down I think I could achieve this. I would just do:
    ROUNDDOWN(((MONTHS_BETWEEN(SYSDATE,Hire Date) /12) - (+ROUNDDOWN+(MONTHS_BETWEEN(SYSDATE,Hire Date) /12))*12)
    ROUNDOWN being my non-existent function!
    Any advice on this is greatly appreciated.
    Lloyd

    Hi,
    TRUNC is the function I always use to round down. It is more flexible than FLOOR as you can use it to round down to a number of decimal places.
    You should also understand that Oracle's definition of MONTHS_BETWEEN does not meet everyones expectations. For example MONTHS_BETWEEN('28-JAN-2001', '28-FEB-2001') is exactly 1 so is MONTHS_BETWEEN('31-JAN-2001', '28-FEB-2001') unless it is a leap year when it is slightly less. That's because Oracle treats the last day of the month as different when it calculates the months between 2 dates.
    Rod West

  • How to get last week of the month from a month

    Hello,
    I want to get last week of the month from a month. For example: If Input = April then Output = Week17. Is there any function module? Or what should be the logic inorder to meet such requirement?
    Thanks in advance for your answers.
    Nitin.

    Hi,
    Just cpoy and past this program, and see the result and apply for you requirements.
    Data: ZSCDATUM TYPE SCDATUM,
          ZKWEEK TYPE KWEEK,
          ZDAY TYPE SY-DATUM,
          ZLDAY TYPE SY-DATUM,
          ZWK(3) TYPE N,
          ZM(2) TYPE N.
          ZDAY = SY-DATUM.
          ZM = ZDAY+4(2).
          CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in                  = ZDAY
            IMPORTING
             LAST_DAY_OF_MONTH       =  ZLDAY
    *       EXCEPTIONS
    *         DAY_IN_NOT_VALID        = 1
    *         OTHERS                  = 2
          IF sy-subrc <> 0.
    *         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          ZSCDATUM = ZLDAY.
          CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              date               = ZSCDATUM
           IMPORTING
             WEEK               = ZKWEEK
    *       EXCEPTIONS
    *         DATE_INVALID       = 1
    *         OTHERS             = 2
          IF sy-subrc <> 0.
    *         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          ZWK = ZKWEEK+4(2).
          WRITE: ZKWEEK.
          WRITE: ZWK.
    Thanks
    Reddy

  • How do I pull just the year from a date?

    I'm trying to pull just the year from a date and cannot figure out how this can be done. I tried the SUBSTR fuction but its not acting how I would expect. What I'm wanting to do is write a condition that says Item Birth Year = Current Year minus 23 I have a calc that figures the age from the difference in the birthdate and current year but I'd really like to just write a condition based just one years. Can this be done?

    Hello
    SUBSTR will only work on a string. To extract portions of a date you need to use the TO_CHAR command.
    To get the year you would use this: TO_CHAR(the_date,'YYYY')
    TO_CHAR takes 2 switches, the date to be manipulated and the portion to be extracted, with the portion in single quotes.
    Once you get used to manipulating dates like this other common pieces are: DD - extracts the day of the month, MON extracts the 3 character code for the month.
    Thus you can use this: TO_CHAR(sysdate,'DD-MON-YYYY') and it will convert the current date, June 7th 2012 to 07-JUN-2012
    Hope this helps
    Best wishes
    Michael

  • Read and List the Files from Remote Webserver Path

    Hi All,
    I have requirement where i need to Read and List the files from a Folder of Remote webserver path using JAVA.
    Remote webserver is within the network only...No Firewall and also Access is given to Read the folder. No Issues on this.
    Folder will just contain some PDF files...
    I just need to display the PDF file names available in the Folder..
    No need to read the PDF File...Only required to read the folder to list the file names in it.
    Looking forward some workaround to this.
    Thanks and Regards.

    I need to read the folder from a webserver path of different machine...
    File dir = new File( prop.getProperty("inputPath"));
    File[] files = dir.listFiles(fileFilter);     
    final String match=siteName;
         final String type=reportType;
         Calendar c1 = Calendar.getInstance();
         c1.add(Calendar.MONTH, - Integer.parseInt(prop.getProperty("filterMonths"))); //Filters reportes generated in last X months (X picked from config file)           
         final long filterDate = c1.getTime().getTime();           
         FileFilter fileFilter = new FileFilter() {
         public boolean accept(File file) {
         long fileLastModiDate = file.lastModified();      
         if((fileLastModiDate >= filterDate) && (file.getName().toLowerCase().startsWith(match)) && ( (type.equals("M") && file.getName().indexOf("WIP")==-1) || ((!type.equals("M") && file.getName().indexOf("WIP")!=-1)) ) ) {                        
              return true;
         }else {
              return false;
    Here it works fine if the input path is local machine..
    But i need to know how to give the input path as WEBSERVER PATH of different machine??

  • Subtracting months from current date

    how to subtract months from current date in mysql

    You are in an Oracle forum, so the Oracle answer is: use add_months(sysdate,-2) to subtract two months from the current date.
    Regards,
    Rob.

Maybe you are looking for

  • How do I write an OutputStream to a String?

    I'm using an ObjectOutputStream to serialize a LinkedList. I tried using a ByteArrayOutputStream and invoking the toString() method thereof, but it changes the first two entries in the array and throws off the readObject() method of the ObjectInputSt

  • "Do Not Use Envelope"  feature: WS Receiver vs Soap Receiver

    I have a scenario that I need to call web service on receive side. When I use Soap adapter, need to use mapping program to compose SOAP message mannully: Envelope    + Header      ++MessageID      ++Action    +Body      ++FistName      ++FistName In

  • Fixed vendor in non-catalog PO

    Hi, We are facing some strange issue. We have a field "Vendor" in Basic data and Source of Supply tab in shopping cart. This would have value only in case of catalog item or there is contract or any other source of supply assigned to that item. If th

  • Which settings take priority In MRP group or in Material master(strategy gp

    Hi, I have 2 different settings for consuption mode, one in material master and one in MRp group.Which one takes priority when MRp is run. Please reply.

  • Updated to iso 7 now no slide show?

    iPhone 4 updated to ios 7 now there is no slideshow triangle in the photos app. Went to - Settings > Photos & Camera > Slideshow > Play Each Slide For > time is gayed out. I can change the play time 3 to 20 seconds showing blue check mark but time re