Date being reset a day or two before

I bought HP spectrum x 360 13 - 4110 a week ago.  I noticed that one or two times a day when he wakes up or restarts, the date is replaced by one or two (sometimes five) days in advance.  Each time I manually display the date.  What should I do to prevent a wrong date?

Hello

It looks like a problem with the CMOS memory.

Please press F10 at startup and go into the BIOS settings and check if the date and time are correct it.

Press F10 again and enter to save the changes.

In addition, click on the following link and install the BIOS update.

http://support.HP.com/us-en/drivers/selfservice/HP-spectre-13-4100-x360-convertible-PC/8499273/model/8788447#Z7_3054ICK0KGTE30AQO5O3KA30R1

If it does not solve the problem, then the computer must be repaired.

Tags: Notebooks

Similar Questions

  • JavaScript anomaly on the number of days between two dates

    Use ApEx 4.0, I found an anomaly in a javascript code that calculates the number of days between two dates, the current_date and the past_date. If the past and present is the or before March 10, 2013, and the current_date lies between 10 March 2013 and November 3, 2013, the number of days will be from 1 day to less than the actual number. Between November 3, 2013 and on 4 November 2013, the increments of number by 2, then the count will be accurate from this date forward.

    Here are some examples:

    March 10, 2013 = 69 days of December 31, 2012
    March 11, 2013 = 69 days of December 31, 2012
    March 12, 2013 = 70 days of December 31, 2012

    November 3, 2013 = 306 days in December 31, 2012
    November 4, 2013 = 308 days in December 31, 2012

    11 March should be 70 and 12 March should be 71. November 3 is 307 and 4 November corrects the number of fake, which began March 11.

    Change the past_date to March 10, 2013 produces the following:

    March 10, 2013 = 0 days of March 10, 2013
    March 11, 2013 = 0 days of March 10, 2013
    March 12, 2013 = 1 days of March 10, 2013

    But change the past_date to 11 March 2013, product of the correct numbers:

    March 11, 2013 = 0 days of March 11, 2013
    March 12, 2013 = 1 days of March 11, 2013
    March 13, 2013 = 2 days of March 11, 2013

    I would certainly all help to determine the cause of this anomaly. Here's the javascript code:

    var w1 = ($v ("P48_PAST_DATE"));
    W1 = (w1.toString ());
    vmon var = (w1.substr (3.3));
    vyr var = (w1.substr (7));
    var r = (vyr.length);
    If (r == 2)
    vyr. = (parseFloat (vyr) + 2000);
    vday var = (w1.substr (0.2));
    var y = (vmon.concat ("", vday, ",", vyr));
    y = Date.parse (y);

    var w2 = ($v ("P48_CURRENT_DATE"));
    var vmon2 = (w2.substr (3.3));
    var vyr2 = (w2.substr (7));
    var vday2 = (w2.substr (0.2));
    var x = (vmon2.concat ("", vday2, ",", vyr2));
    x = Date.parse (x);

    var numdays = (x - y);
    numdays = (Math.floor(numdays / 86400000));
    $s ("P48_NUMBEROFDAYS", numdays);

    Did you google for something like "javascript number of days between two dates. I think you will find the explanation to this observation:

    This method does not work correctly if there is an advanced economies jump between the two dates.

    There are examples available to calculate the difference between two dates.

  • County of days between two dates without weekend

    Hello
    I need a solution in the query or another thread, which returns the number of days between two dates without considering the weekend (Saturday and Sunday), I have a column of type Date, and return need in the form of a column HH hours and days in another column.

    Concerning
    Jonas

    Hi and welcome to the forum.

    Don't forget you can do a search on this forum.
    Your question has been asked before.

    Some other tips:

    http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551242712657900129
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:185012348071

  • Dynamic calculation of the number of days between two dates in a table

    Hello

    I'm working on request where I dynamically calculate the number of days between two dates in a table.

    The calculation must be dynamic, i.e., when I recover the Start_date and End_date and move to the field following (call_duration) in the same row, the difference must be calculated dynamically in this area and make sure the field read-only.

    APEX version: 5.0

    Hi BO123,

    BO123 wrote:

    Hello

    I'm working on request where I dynamically calculate the number of days between two dates in a table.

    The calculation must be dynamic, i.e., when I recover the Start_date and End_date and move to the field following (call_duration) in the same row, the difference must be calculated dynamically in this area and make sure the field read-only.

    APEX version: 5.0

    one of the way to do this by calling ajax on change of end_date.

    See the sample code given below to fetch the resulting duration and making the field read only after calculation

    Step 1: Change your page

    under CSS-> Inline, put the code below

    .row_item_disabled {
      cursor: default;
      opacity: 0.5;
      filter: alpha(opacity=50);
      pointer-events: none;
    }
    

    Step 2: Create on demand Ajax process I say CALC_DURATION

    Please check Procces Ajax, see line 6.7 How to assign a value to the variable sent by ajax call

    Declare
      p_start_date  date;
      p_end_date    date;
      p_duration number;
    Begin
      p_start_date  := to_date(apex_application.g_x01);
      p_end_date    := to_date(apex_application.g_x02);
    
       --do your calculation and assign the output to the variable p_duration
      select p_end_date - p_start_date into p_duration
        from dual;
    
      -- return calculated duration
      sys.htp.p(p_duration);
    End;
    

    Step 3: Create the javascript function

    Change your page-> the function and the declaration of the Global Variable-> put the javascript function

    You must extract the rowid in the first place, for which you want to set the time, see line 2

    assuming f06, f07 and f08 is the id of the start date, and end date columns respectively, and duration

    See no line no 8 how set the value returned by the process of ajax at the duration column

    Replace your column to the respective column identifiers in the code below

    function f_calulate_duration(pThis) {
      var row_id  = pThis.id.substr(4);
      var start_date = $('#f06_'+row_id).val();
      apex.server.process ( "CALC_DURATION", {
      x01: start_date,x02: $(pThis).val()
    }, { success: function( pData ) {
    // set duration to duration column
    $('#f08_'+row_id).val(pData);
    // disable duration column
    $("#f08_" + row_id).attr("readonly", true).addClass('row_item_disabled'); }
    });
    }
    

    Step 4: choose the end date call the javascript function

    Go to report attributes-> edit your Date column end-> column-> Attrbiutes element attributes-> put the code below

    onchange="javascript:f_calulate_duration(this);"
    


    hope this helps you,

    Kind regards

    Jitendra

  • Days between two dates given

    Hi all

    I need the days between two dates given.

    Select to_date('25-mar-2014','dd-mon-yyyy') start_date, end_date to_date('30-mar-2014','dd-mon-yyyy')

    of the double

    Desired output:

    25

    26

    27

    28

    29

    30

    Thanks in advance.

    Kind regards

    Afzal.

    Select the level - 1 desired_output + to_number (to_char (start_date, 'dd'))

    of (to_date('25-mar-2014','dd-mon-yyyy') select start_date, end_date to_date('30-mar-2014','dd-mon-yyyy'))

    of the double

    )

    connect by level<=  end_date="" -="" start_date="" +="">

    DESIRED_OUTPUT
    25
    26
    27
    28
    29
    30

    Concerning

    Etbin

  • How to find days between two dates in days

    Hi, I want to get the days between two dates, expressed in days, how can I do this?  For example, I date i.e. 1 October 10, 2013 (Thursday) and 2 as October 13, 2013 (Sunday).  How can I get a production of:

    Thursday, Friday, Saturday and Sunday, which are the days between Oct. 10-13, 2013.  I hope you understand my point.  Thank you

    You can try something like this

    CURSOR LOAD_PROF is

    SELECT load_prof1, v_time_profile_day

    OF load_profile_test

    WHERE profile_day IN (select TO_CHAR(:day1+level-1,'Day')

    of the double

    connect by level<>

    );

    Kind regards

    S Pax

  • find the difference in days between two dates

    Hello world

    I'm trying to find out the difference in days between two dates and the execution of the query that I'm passing

    SELECT TO_char(sysdate, 'dd/mm/yyyy') - TO_char('15/11/2011', 'dd/mm/yyyy') DAYS FROM DUAL

    the error I get is

    ORA-01722: invalid number
    01722 00000 - "invalid number."
    * Cause:
    * Action:

    Could someone please help.

    Thanks in advance

    user10636796 wrote:
    Hello world

    Thanks a lot for all the replies. I am trying to apply it in a statement to my table like this

    SELECT trunc (sysdate) - TO_char (date_last_recommended, ' dd/mm/yyyy') DAYS OF recommendation;

    SELECT trunc (sysdate) - TRUNC (date_last_recommended) DAYS OF recommendation;

  • Number of days between two objects Oracle.jbo.domain.Date

    I have two objects Oracle.job.domain.Date:

    Date = StartDate (Date) CurrentRow.getAttribute ("StartDt");
    Date = CurrentDate (Date) this.getOADBTransaction () .getCurrentDBDate ();

    I want to find the number of days between StartDate and CurrentDate.
    I tried the CompareTo () function, but its does not not the desired results.
    Can someone let me know how I can find the number of days between StartDate and CurrentDate above?

    Concerning
    Hawker

    Hawker,

    Use the code below

    Date StartDate= (Date)CurrentRow.getAttribute("StartDate");
        Date CurrentDate = (Date)am.getOADBTransaction().getCurrentDBDate();
        java.sql.Date sdate = (java.sql.Date) StartDate.dateValue();
        java.sql.Date cdate = (java.sql.Date) CurrentDate.dateValue();
        int days = daysBetween(sdate,cdate );
    
      public int daysBetween(java.sql.Date d1, java.sql.Date d2){
         return (int)( (d2.getTime() - d1.getTime()) / (1000 * 60 * 60 * 24));
             }
    

    Kind regards
    GYAN

    Published by: Gyan on 27 March 2011 19:56

  • Calculate the difference in days between two Dates

    Hello

    I'm trying to understand how to calculate the difference in days between two dates using JavaScript in LiveCycle. (Minimum = JavaScript knowledge)

    Where 'Start_Date' and 'Current_Date' are the names of the two dates in the palette of the hierarchy. (the two Date/time field)

    * Current date is using the object > value > execution property > current Date/time

    I need a text or number field showing the difference in days. (Difference_in_Days)

    I noticed the following code is pretty standard among other responses:

    var

    Start_date = new Date (Start_Date);

    var

    Current_Date = new Date (Current_Date);

    var

    nAgeMilliseconds = Current_Date.getTime) - Start_date.getTime ();

    var

    nMilliSecondsPerYear = 365 * 24 * 60 * 60 * 1000 ;

    I know there is lack of code and code above are may not be not correct.

    Please notify.

    OK, that's because of the way that javascript and works of the calculate event.  The field will be filled with whatever the script resolves at the end of execution. Technically, your script does not have a value because the last thing you do is an assignment to a variable.  Change the last line as follows:

    Math.ABS ((firstDate.getTime)

    ((- secondDate.getTime (()) / (oneDay));

    (eliminate the variable assignment) and get rid of the app.alert.  Your script will "return" (have) regardless of the value of calculation from the East and which will be stored in the field.

  • Calculate the number of days between two dates

    Hello

    Can someone help please change my formcalc script to calculate the number of working days between two date fields.  My script currently calculates the total number of days between two dates, including the weekends which must be excluded from the total.

    If

    (HasValue (Start_Date1) & HasValue (End_Date1)) then

    $

    = Date2Num (End_Date1, "YYYY-MM-DD" "en_IE") - Date2Num (Start_Date1, "YYYY-MM-DD" "en_IE") + 1

    on the other

    ""

    endif

    Any help will be most appreciated.

    Thank you.

    Check...

    (1) you said that you put the script on the event «days1» calculate My sample imitates the variable names used in the original message, "Start_Date1" and "End_Date1". If the names of variables for the start and end dates are different, you will need to modify the script to account for these names.

    (2) the Date2Num functions in the calculation of the "totalDays" use the date format "YYYY-MM-DD". If your date habits differ from "YYYY-MM-DD" FormCalc will complain.

    Steve

  • Behavior of days between two dates

    Hello!
    If anyone can help? ... with differences in Date? :

    All I want is to calculate the number of days between two dates:

    InitDate has been entered as 01/10/2010 planning, to recover is 20101001
    HireDate was entered into the 1980-10-01 planning, to recover is 19801001

    I tried

    NumDays = @DATEDIFF (InitDate, HireDate, DP_DAY);

    but give me only 0 and -1.



    When I try the regular difference:

    NumDays = InitDate - HireDate;

    He returned to 30,000 (which in the example is 20101001-19801001) - which should not.


    I use Essbase/Planning 11.1.1.2, I tried also to break dates in years and months using INT and operations, but when I want to get the calendar days he is ugly. The two dates live in the same block.

    Someone at - it an idea?

    Thank you very much!

    Hello
    Here's a piece of code in my trunk of code which may help you. This assumes you have string CDF pack (https://www.samplecode.oracle.com/tracker/tracking/linkid/prpl1004/remcurreport/true/template/ViewIssue.vm/id/S441/nbrresults/9)

    var y1, y2, m1, m2, d1, d2, difx1, difx2;

    FIX (SOLUTION YOUR MEMBERS HERE)
    "BLOCK MEMBER")

    Y1=@round ("Date of 1" / 10000,0);
    Y2=@round ("Date 2" / 10000,0);
    M1=@round (("Date 1"-y1*10000)/100, 0);
    M2=@round (("Date 2"-y2*10000)/100, 0);
    D1 = ' Date of 1 "-(y1*10000+m1*100);"»
    D2 = "Date 2"-(y2*10000+m2*100); "»

    difx1=@TODATEEX ("mm/dd/yyyy",
    @JconcatStrings (@LIST (@JgetStringFromDouble (m2,@_false,@_false), ' / ', @JgetStringFromDouble (d2,@_false,@_false), ' / ', @JgetStringFromDouble (y2,@_false,@_false)))
    )
    ) ;
    difx2 = @TODATEEX ("mm/dd/yyyy", @JconcatStrings (@LIST)
    @JgetStringFromDouble (m1,@_false,@_false), ' / '.
    @JgetStringFromDouble (d1,@_false,@_false), ' / '.
    @JgetStringFromDouble (y1,@_false,@_false))
    )
    );

    diff=@DateDiff (difx2, difx1, DP_DAY);
    )
    ENDFIX

    See you soon,.
    Alp

  • Dates of the fortnight of days between two dates

    Hello

    I want to show every fortnight dates based on the date, to date and the day of week (sunday, monday...)

    Input parameters
    Date: 31/05/2011
    To date: 30/06/2011
    day of week: Thursday

    Output
    06/02/2011
    16/06/2011
    30/06/2011


    Input parameters
    Date: 25/06/2011
    To date: 30/06/2011
    day of week: Monday

    Output
    27/06/2011

    can someone help me?

    Published by: user10594152 on May 30, 2011 22:10

    Published by: user10594152 on May 30, 2011 22:19

    Hello

    Here's one way:

    WITH     parameters     AS
    (
         SELECT     DATE '2011-05-31'     AS start_date
         ,     DATE '2011-06-30'     AS end_date
         ,     'Thursday'          AS day_o_week
         FROM     dual
    )
    ,     got_dt     AS
    (
         SELECT     end_date
         ,     NEXT_DAY ( start_date - 1
                    , day_o_week
                    ) + (14 * (LEVEL - 1))     AS dt
         FROM     parameters
         CONNECT BY     LEVEL     <= CEIL     ( (end_date - start_date)
                             / 14
                             )
    )
    SELECT     dt
    FROM     got_dt
    WHERE     dt     <= end_date
    ;
    

    This ID on NLS_DATE_LANGUAGE load. If you do not what it is, you can change the sub-quewry like this:

    WITH     parameters     AS
    (
         SELECT     DATE '2011-06-25'     AS start_date
         ,     DATE '2011-06-30'     AS end_date
         ,     TO_CHAR ( DATE '2011-05-30'     -- or any Monday
                   , 'Day'
                   )          AS day_o_week
         FROM     dual
    ) ...
    

    Published by: Frank Kulash, 30 May 2011 13:13
    Adding a warning about NLS_DATE_LANGUAGE

  • Figure out how many years and days between two dates

    Nice day

    I've been dealing with the problem for a few days now so I thought that I could send it and see if someone can tell me what I'm doing wrong.

    / * Create a Date with a date object. */

    var d1 = getField "(RELEASE. DATE') .value;

    / * Create a date object containing the current date. */

    var d2 = getField("Text4").value;

    / * Number of years difference. */

    diff = (((d2.valueOf () - d1.valueOf (()) / 1000) / 60) / 60) / 24) / 365;

    Displays the field "Text3".

    getField("Text3").value = (diff); & #8232;
    < END >

    RELEASE. Value DATE is January 1, 2011, with a date format dd/mmm/yyyy

    Text4 value is March 1, 2011 with a date format dd/mmm/yyyy

    The release of Text3 gives me a 'NaN' result

    What I'm trying to do is calculated the number of years an employee has had with the company, and then display a balance of days that he had.

    Any thoughts would be greatly appreciated.

    repeated conversion from date string and number of days for the reuse of code
    function Date2Num (cFormat, cDate) {}
    Converts a date string formatted in days since the date of the time
    Kai var = util.scand (cFormat, cDate);
    Math.floor (oDate.getTime (return) / (1000 * 60 * 60 * 24));
    }

    / * Create a Date with a date object. */
    var d1 = (getField("Enrol_Day").value + "/" + getField("EnrolMonth").value + "/" + getField("EnrolYear").value);
    Converts a date in the date object string
    oD1 var = util.scand ("dd/mmm/yyyy", d1);
    get the current date of the field
    var d2 = (getField ("TD. RelDay") .value + ' / ' + getField ("TD. RelMonth") .value + ' / ' + getField ("TD. (RelYear') .value);

    calculate the difference in days
    diff var = Date2Num ("dd/mmm/yyyy", d2) - Date2Num ("dd/mmm/yyyy", d1);
    increment the value if the end date should be included in the calculation
    diff ++;
    convert days to truncate all years - to the next intiger lowest
    var carnavalSVP = Math.floor(diff / 365.25);
    get the current year interval - rest of diff days divided by 365.25 days
    var nDays = Math.floor (diff % 365.25);

    display the entered values
    CMSG var = ' end date: "+ d2 +" \t Compute days: ' "+ Date2Num (" dd/mmm/yyyy", d2);
    CMSG += "\nStart date:" + d1 + "\t Compute days: '" + Date2Num ("dd/mmm/yyyy", d1);
    Total difference in days
    CMSG += "\nTotal elapsed days:"+ diff;»
    result in years and days
    CMSG += "\nYears:" + carnavalSVP + "and" + nDays + 'days'; "."
    App.Alert (GSMC, 1, 0, "results");
    //

  • C4599 fine facility - which goes away in a day or two!

    Hi all!  I just bought a C4599 (have been a passionate lover of HP printer for more than 10 years) and with enthusiasm the value it upward and I love it but I'm having a recurring problem which can force me to go back for another printer.  I contacted HP technical support by email and rec would be very sparse help, until then thought I would try here.  I * DID * search on the forum and found a problem similar to this one but it had not yet been resolved in a solution and it's a little different (he said his continuous printer to work properly, but only its scanner disappears - in my case the whole printer disappears).

    So here's the config:

    (1) C4599

    (2) portable Toshiba, the two Vista running (one is my wife, it is mine) - Although there are certainly differences between the two for personal use, I do all the updates/maintenance on them (and they are identical models) so, from the material point of view, they are identical and software point of view they are nearly identical (in regards to service packs, drivers, etc.)

    (1) type of computer (prior bench-tech, current software engineer retail) experienced enough - don't say not no way that I know all this!

    The initial installation and the results:

    (1) installed the printer via the USB port using my laptop worked great - printer configured to run wireless on my local network via DHCP

    (2) removed the USB cable and ran the new installer - this time change the setting using the printer now without thread - worked great!

    (3) Ran the software on my wife's cell phone, set up the printer without wire - worked great!

    (4) after that about a day, I noticed, when you try to print, the printer is no longer my choice of printer.  It simply isn't there.   The HP Digital Imaging Monitor also said that he is not here.

    (5) laptop my wife shows it is connected to the printer fine and prints successfully.

    (6) I notice that in the NETWORK Panel (on my laptop), the printer is still there - but restart my laptop has no effect.

    (7) I have reinstall the software on my end, the printer is located - works great!

    (8) problem is repeated several times on both of our phones over several days.  Whenever symptoms are almost exactly as described above.  Each one laptop can still use the printer while the other cannot (but don't read this to say never two laptop computers don't see the printer, they DO!  Once I have newly install the software on the laptop with, TWO laptops CAN THEN SEE the PRINTER - AND USE IT!  "But it's just a matter of time before it one of them 'loses' the printer... and sometimes both of them lose).

    (9) I then changed the printer a static IP address that I am sure no other devices on my network to fight for (it's outside of the DHCP pool and all the rest of my network is DHCP).  This has not solved the problem in a day or two, the printer has disappeared again.

    (10) I sent HP technical support and received a long document that describes how to open ports, to disable security settings, etc..  Even if it seems useful, it seems odd to me - I think that if I can see and use the printer (including scan) without any problem for a day or two then things like ports closed and too high security settings is not the problem - but what I know.

    (11) so I go to step 1 enamel, HP and step 2 so I am told:

    b. then perform the steps below to scan using the built-in Web server.

    1. open the Internet Explorer browser.
    2. Enter the IP address of the HP all-in-One server / print (recovered since the)
    Configuration page) in your browser.
    3. press ENTER.
    NOTE: Java must be installed on the computer. If you are using Windows XP,
    It may be necessary to obtain the latest version of Java.
    4. the Embedded Web Server is displayed.


    5. select scan, which displays the following options: Type of Image, Image
    Format, the size of the Document adjust settings accordingly.
    6. click on the scan button.

    (12) However, after doing all this and go to step 5, I see no. SCAN 'button' - in fact, nothing really "scan."  The web server page is very pretty and has areas for me to see the wireless configuration (and change) and do a few different things and the page looks complete - but no "scan" function cannot be found.  I know that the scanner is working normally, even though b/c I used it successfully several times.

    After you send the results to HP 3 days ago and received no response, I got to a point to give up - I'm far too busy to deal with a printer that needs to be reinstalled every day or two and nowdays return periods on most computer stuff is fifteen days while I'm about to consider fair return in a few days.  I hope you guys here can help me solve this problem!  (PLEASE)

    I know it's length was trying to provide as much information to information. that I could think of.  I appreciate all the comments that can lead to this problem being fixed.

    Thank you

    Bane

    Jim,

    Thought I'd post an update.  I went through the firewall document you provided, but it doesn't seem to help, not found any printer.  I reinstalled the software and that he was going to see if reinstalling AFTER opening of the firewall would make a difference, but the next morning the printer had disappeared and when I looked at the screen was black - the printer was locked up AGAIN (happened to me once some time last week).  I got fed up and said enough is enough and fired.  Due to my love along the HP printers and useful suggestions, I decided to go there and try another HP.  I even convinced myself to try another model wireless - but I decided to hedge my bets a bit and stepped into a whole new category: the OfficeJet (J6480).  The C4599 sought better but man, long-wise, the J6480 is * AWESOME *!

    I must say, install it was * PAINFUL *!  I started by uninstalling completely all the HP printer software of two laptops.  Then I installed the software, it finds the printer, everything was working fine until the installer had completely finished - then, suddenly got a message saying that the printer could not be found.  I have preview with this thing for about an hour without result (has moved to the AP, reinstalled the software, etc.).  Then I happened to put IP of the printer for static and in doing so found that installing the software was, who knows why, assigned an IP address to the printer that was far from what my DHCP is used!     Arrrgggh!  My DHCP is used from 192.168.1.200, and for some reason, the printer has been at an address in the 168.x.x.x range (I forgot what it was exactly).  After monkeying with the installation of the software for a while trying to figure out how to set a static IP address (which was the only way to do it on the C4599) I finally looked in the menu of the printer and find the option there.  Once I put the static IP address it I then reinstalled the HP software again and I walked the firewall document you provided and made sure everything was good there.  And then bada-bing, the printer is online and has worked beautifully - and, so far, it is still online!  (Keepin ' my fingers crossed)

    I'll give it a few days more and give you a last update if this thing is still online as long.

    ~ Brandon

  • How can I get the lines for the date between 2 different days

    Hi all,

    How can I get the lines for the date between 2 different days.

    Sample data:
    Table name: Articles
    Title start_date end_date
    Heading1 08-22-2011 2011-09-11
    2011-08-01-2011-09-01 Title2
    Title 3 2011-08-21 08-21-2011
    title4 2011-08-28 2011-09-11

    Result will be:
    Title start_date end_date
    Heading1 08-22-2011 2011-09-11
    2011-08-01-2011-09-01 Title2
    title4 2011-08-28 2011-09-11

    This is my example query:
    SELECT * FROM items WHERE trunc (es.date_start) > = TO_DATE('2011-08-22', 'YYYY-MM-DD') AND trunc (es.date_end) < = TO_DATE ('2011-08-28', 'YYYY-MM-DD')

    but I can not get the expected results. Any help would be much appreciated.

    Thanks in advance

    not read your question properly before...

    Please try this

    Select * FROM items
    WHERE (TO_DATE ('2011-08-22', 'YYYY-MM-DD') between TRUNC (es.date_start))
    AND TRUNC (es.date_end)) OR
    (TO_DATE ('2011-08-28', 'YYYY-MM-DD') between TRUNC (es.date_start))
    AND TRUNC (es.date_end))

Maybe you are looking for