Select multiple date with interval in date-navigator

Hi,
Is it possible to have a multiple date selection with interval in a date-navigator. When yes, how?
Richard Middelburg

Look at the below thread:
Re: Date Navigator Challenge
Raja T

Similar Messages

  • Solution: multiple diags with name efa.dat found

    This is a solution to a problem I hit. When I tried to run a diag on the model it would throw the error:
    sims: locating diag efa.dat
    sims: Looking for diag under $SIMS_LAUNCH_DIR
    sims: Caught a SIGDIE. multiple diags with name efa.dat found at /import/dtg-data20/jj155244/OpenSPARCT2/tools/src/sims,1.272 line 4581.
    Solution: do not run in the $DV_ROOT directory. Create a subdirectory for the run or run elsewhere.
    A efa.dat file is created in the run directory by sims. There is also an efa.dat in $DV_ROOT/verif/diag/assembly/include/efa.dat. sims looks for the efa.dat file starting in the run directory. It finds both the files and complains about finding multiple files.

    1. Use the index with the lower fragmentation to identify the newly rebuilt index (as it almost always will have lower fragmentation)
    2. To reproduce, block the online index rebuild process by trying to alter the table's definition in a transaction (and don't commit, which will place schema lock on the table)
    Satish Kartan http://www.sqlfood.com/

  • Select Multiple accounts with multiple corresponding departments values

    I have a table with several account numbers that have corresponding department ID, and I am trying to select multiple specific accounts who have data in multiple specific department ID's.
    This is where I started.
    select * table1 a, table1 b, table1 c
    where a.col1 in ('a.acc1','a.acc2','a.acc3')
    and a.col2 in ('a.dep1','a.dep2')
    and b.col1 in ('b.acc6','b.acc7','b.acc8')
    and b.col2 in ('b.dep4','b.dep5','b.dep1')
    table1
    Col1 Col2 col3
    acc1 dep1 21
    acc1 dep2 32
    acc2 dep1 44
    acc2 dep2 29
    acc2 dep3 320
    acc3 dep1 10
    acc6 dep4 312
    acc7 dep3 234
    acc8 dep2 2
    acc9 dep1 132
    What would be the most efficient way to build this query?
    thanks

    Like this?
    SQL> WITH T
      2       AS (SELECT 'acc1' col1, 'dep1' col2, 21 col3 FROM DUAL
      3           UNION ALL
      4           SELECT 'acc1' col1, 'dep2' col2, 32 col3 FROM DUAL
      5           UNION ALL
      6           SELECT 'acc2' col1, 'dep1' col2, 44 col3 FROM DUAL
      7           UNION ALL
      8           SELECT 'acc2' col1, 'dep2' col2, 29 col3 FROM DUAL
      9           UNION ALL
    10           SELECT 'acc2' col1, 'dep3' col2, 320 col3 FROM DUAL
    11           UNION ALL
    12           SELECT 'acc3' col1, 'dep1' col2, 10 col3 FROM DUAL
    13           UNION ALL
    14           SELECT 'acc6' col1, 'dep4' col2, 312 col3 FROM DUAL
    15           UNION ALL
    16           SELECT 'acc7' col1, 'dep3' col2, 234 col3 FROM DUAL
    17           UNION ALL
    18           SELECT 'acc8' col1, 'dep2' col2, 2 col3 FROM DUAL
    19           UNION ALL
    20           SELECT 'acc9' col1, 'dep1' col2, 132 col3 FROM DUAL)
    21  SELECT *
    22    FROM T;
    COL1 COL2       COL3
    acc1 dep1         21
    acc1 dep2         32
    acc2 dep1         44
    acc2 dep2         29
    acc2 dep3        320
    acc3 dep1         10
    acc6 dep4        312
    acc7 dep3        234
    acc8 dep2          2
    acc9 dep1        132
    10 rows selected.
    SQL>
    SQL> WITH T
      2       AS (SELECT 'acc1' col1, 'dep1' col2, 21 col3 FROM DUAL
      3           UNION ALL
      4           SELECT 'acc1' col1, 'dep2' col2, 32 col3 FROM DUAL
      5           UNION ALL
      6           SELECT 'acc2' col1, 'dep1' col2, 44 col3 FROM DUAL
      7           UNION ALL
      8           SELECT 'acc2' col1, 'dep2' col2, 29 col3 FROM DUAL
      9           UNION ALL
    10           SELECT 'acc2' col1, 'dep3' col2, 320 col3 FROM DUAL
    11           UNION ALL
    12           SELECT 'acc3' col1, 'dep1' col2, 10 col3 FROM DUAL
    13           UNION ALL
    14           SELECT 'acc6' col1, 'dep4' col2, 312 col3 FROM DUAL
    15           UNION ALL
    16           SELECT 'acc7' col1, 'dep3' col2, 234 col3 FROM DUAL
    17           UNION ALL
    18           SELECT 'acc8' col1, 'dep2' col2, 2 col3 FROM DUAL
    19           UNION ALL
    20           SELECT 'acc9' col1, 'dep1' col2, 132 col3 FROM DUAL)
    21  SELECT col1
    22    FROM T
    23  GROUP BY col1
    24  HAVING COUNT (DISTINCT col2) > 1;
    COL1
    acc1
    acc2
    SQL> G.

  • Difference between real Hijri Date with Oracle Hijri date

    Dear ALL,
    I will appreciate if any one please let me the solution for this problem. In my application I show the Date in Hijri using the NLS setting. but the issue that "i face a deference between the real hijri date with oracle hijri date"
    Assume that the real hijri date on 18-SEP-2012 was 02/11/1433 in hijri but in oracle was 03/11/1433
    when I execute the following query it shows me "1433/11/03", but the actual Hijri date is "1433/11/02"
    select to_char(to_date('20120918','YYYYMMDD'),'YYYY/MM/DD', 'NLS_calendar='''||'ARABIC hijrah') FROM DUAL;
    IFTIKHAR

    Hi,
    It works correctly for me, too:
    SELECT  TO_CHAR ( TO_DATE ('20120918', 'YYYYMMDD')
              , 'YYYY/MM/DD'
              , 'NLS_calendar=''ARABIC hijrah'''
              )      AS h_date
    FROM    dual;Output:
    H_DATE                                                                         
    1433/11/02                                                                      I tried it on Oracle versions
    9.2.0.6.0
    10.1.0.2.0
    10.2.0.3.0
    11.1.0.6.0
    11.2.0.1.0
    and got the same results every time. What version of Oracle are you using? What other software (front end, OS, ...)?
    If it's consistently giving you the results for the day after the day wanted, then subtract 1 day before calling TO_CHAR. I know this is not a solution, just a work-around until you find and fix the real problem.

  • Use of "with master data & with out master data" at DTP update level

    Hello experts,
    In DTP, I check "with out master data". When I try to send corresponding transactional data, It is showing SID related error. Can anybody suggest what is the use of "with master data & with out master data" at DTP level.
    Thanks in advance,
    Zakir.

    HI
    HI in DTP level If you set this indicator, the system terminates the update of the request if no values are available for a data record.
    Load the relevant master data before you load the transaction data.
    If you set this indicator, the system terminates activation if master data is missing and produces an error message.
    If you do not set this indicator, the system generates any missing SID values during activation.
    In DataStore maintenance, if you do not set the SIDs Generation upon Activation indicator, the No Update without Master Data indicator in the DTP has no effect.
    thx
    vijju

  • Selecting Multiple Files With Shift Key

    Am I right in understanding that the only way to select multiple files with the Shift key in Finder is by using File view? Seems kinda silly.
    Thank you, Scott

    I'm at my Snow Leopard machine right now, and I'm not sure that nothing was changed in Mavericks, but I never noticed that it was.
    I have four view modes: Icon, List, Column and CoverFlow.
    I almost always use Column view, but I am guessing that you are calling Icon view File view. In Icon view, Shift clicking seems to work the way Command clicking does in Column view (and probably the other views as well): it allows you to add randomly selected files to the selection. In Column view, Shift clicking works like it does for most things (like text selection); it selects every thing between the previous click and the Shift click.

  • Can't select multiple items with shift key os 10.7

    I can use command A to select all, and I can select multiple items with command and individually clicking each one, but not using Shift and clicking on the first and last items.  Any ideas?

    You need to display the window in column or list view. Shift-clicking items won't do that in icon view.
    (64793)

  • Creating a selectable HTML table with Sahrepoint list data dind

    Hi All,
    I m creating an app for sharepoint2013 , on my app I want to read data from SP list and display on something like HTML table/ grid view.
    What I have done is as follows.
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="TermList">
                        <thead>
                            <tr>
                                        <th>Start Date</th>
                                <th>End Date</th>
                                <th>Term Type(s)</th>
                                <th>Specialty</th>
                                <th width="12%">Sub Specialty</th>
                            </tr>
                        </thead>
                                            <tbody>
                            </tbody>
    </table>
    var context = SP.ClientContext.get_current();
    var user = context.get_web().get_currentUser();
    var Termsitems, web, hostcontext, currentusertitle;
    var hosturl;
    (function () {
    $(document).ready(function () {
        gethostdata();
        getUserName();
        $('#TermList').dataTable(
                        "sScrollY": 200,
                            This will enable jQuery UI theme
                        "bJQueryUI": true,
                            will add the pagination links
                        "sPaginationType": "full_numbers"
        getTermdetails();
    function gethostdata() {
        hosturl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
        context = new SP.ClientContext.get_current();
        hostcontext = new SP.AppContextSite(context, hosturl);
        web = hostcontext.get_web();
        context.load(web, 'Title');
        context.executeQueryAsync(onSiteLoadSuccess, onQueryFailed);
    function onSiteLoadSuccess(sender, args) {
        //   alert("site title : " + web.get_title());
    function onQueryFailed(sender, args) {
        alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace());
    function getQueryStringParameter(urlParameterKey) {
        var params = document.URL.split('?')[1].split('&');
        var strParams = '';
        for (var i = 0; i < params.length; i = i + 1) {
            var singleParam = params[i].split('=');
            if (singleParam[0] == urlParameterKey)
                return decodeURIComponent(singleParam[1]);
    // This function prepares, loads, and then executes a SharePoint query to get the current users information
    function getUserName() {
        context.load(user);
        context.executeQueryAsync(onGetUserNameSuccess, onGetUserNameFail);
    // This function is executed if the above call is successful
    // It replaces the contents of the 'message' element with the user name
    function onGetUserNameSuccess() {
    currentusertitle= user.get_title();
      $('#message').text('Hello ' + user.get_title());
    // This function is executed if the above call fails
    function onGetUserNameFail(sender, args) {
        alert('Failed to get user name. Error:' + args.get_message());
    function getTermdetails() {
        var Termlist = web.get_lists().getByTitle("TraineeTermsSPlist");
        context.load(Termlist)
        var camlQuery = new SP.CamlQuery();
        camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Title" />' +
                                 '<Value Type="Text"> + currentusertitle + </Value></Eq></Where></Query></View>');
        Termsitems = Termlist.getItems(camlQuery);
        context.load(Termsitems);
        context.executeQueryAsync(getTermdetailsQuerySuccsess, getTermdetailsQueryFails)
    function getTermdetailsQuerySuccsess(sender, args) {
        var listEnumerator = Termsitems.getEnumerator();
        var datatable = document.getElementById("TermList");
        while (listEnumerator.moveNext()) {
            var oListItem = listEnumerator.get_current();
            var startdate = listEnumerator.get_current().get_item('startdate');
            var enddate = listEnumerator.get_current().get_item('Enddate');
            var termtype = listEnumerator.get_current().get_item('TermType');       
            var Specialty = listEnumerator.get_current().get_item('Specialty');
            var Specialty = listEnumerator.get_current().get_item('Subspecialty');
            $("#TermList").append("<tr align='middle'  class='gradeA'>" +
                                      "<td align='left'>" + startdate +
    "</td>" +
                                      "<td align='left'>" + enddate + "</td>"
    +
                                      "<td align='left'>" + termtype + "</td>"
    +
                                      "<td align='left'>" + Specialty +
    "</td>" +
                                      "<td align='left'>" + Specialty +
    "</td>" + "</tr>");
    function getTermdetailsQueryFails(sender, args) {
        alert(' Error:' + args.get_message());
    Now what I want to do is allow user to select rows on the table. Once they select a row I want to get that selected row and search SP list based on the selected value.  Also I would like to make this table with search area to search records.
    Can someone please help me to do this, or are there any easy way to do this. Sample code or useful link much appreciate.
    Thank you very much.
    d.n weerasinghe

    Instead of writing in dive each and every time directly,
    just have a div in html, and inside the while loop
    write and store in the variable like
      output += "<li><a href='#' style='display:none'>" + usernames[i] + " </a> "
                         + "<table id='results' width='100%'>"
                         + "
    <tr style='border-bottom:1px silver solid;'>"
                         + "
    <td style='width:60px;height:70px;' >"
                         + "
    <img alt=\"profile pic\" src= '" + pictureuri[i] + "'  style='width:60px;height:60px;'/>"
                         + "
    </td>"
                         + "
    <td >"
                         + "
    <table style='height:100%'>"
                         + "
    <tr>"
                         + "
    <td style='padding-padding-vertical-align:top;height:10px' >"
                         + "
    <a href='" + personaluri[i] + "' classq='ms-bold ms-subtleLink' style='color: gray; font-size: 12px; font-weight: bold;'>" + tempnames[i] + "</a>"
                         + "
    </td>"
                         + "
    </tr>"
                         + "
    <tr>"
                         + "
    <td  style='padding-vertical-align:top;height:50px;color:#ADAEAD;font-size:14px;' >" + deptNames[i]
                         + "
    </td>"
                         + "
    </tr>"
                         + "
    </table>"
                         + "
    </td>"
                         + "
    </tr>"
                         + "</table>"
                         + "</li>"
    and finaly oyutside the loop 
    $(#div).html(output);

  • Selecting multiple files with mouse now wonky

    Using Windows 8.1 on HP machine
    All updates up-to-date
    Hardware: Microsoft Intellimouse Explorer 3.0
    Explorer Folder Option selected: Single-click to open an item (point to select); Underline icon titles only when I point on them
    Display: Detail list (Ctrl + Shift + 6)
    No touch input
    Here's the problem: For as long as I have used windows, I can select multiple files by pressing ctrl-left mouse button. If I want to select multiple consecutive files, I move my cursor down to the last file in the list and press shift-left mouse button.
    If I want to select multiple files that are not listed consecutively, I move my cursor along the list of files and press ctrl-left mouse button to select each individual file.
    This does not work for me any longer and I do not know why.
    Often I will press ctrl-left mouse click and the file will not select. When I move my mouse away from the file I've selected, it will UN-select. If I continue to press the CTRL key while attempting to select another file and float my mouse cursor down the
    list of files to select ONE single file further in the list, ALL the files in between the first file I click and the final file will become selected.
    Moving the mouse cursor carefully and steadily to select individual files yields varied results; sometimes I can select individual files; sometimes, I can click multiple times to select an additional file and the file will not become selected. More often
    than not, I will select several files and earlier files will become unselected.
    Extremely frustrating.
    I have been a Windows user since version 3.1 and this has never happened to me. I have been a Windows 8.1 user for over a year now and this is a new wrinkle. I have done system restore multiple times and it has not solved the problem. I have uninstalled
    Intellipoint/Microsoft Keyboard & Mouse center and reinstalled and the problem has not solved. I have checked every setting for my mouse in the mouse center and cannot see a setting that imposes this feature.
    Changing folder options to Double-click to open an item (single click to select) solves the problem. I am able to navigate and organize my files the way I always have. Only happens when single-click feature is enabled. Please note: I have been using the
    single-click select feature since Windows XP.
    Your guidance and actual solution to this irritant is appreciated.

    Hi,
    During my test, I cannot repro this issue even I configure the same setting with you. Maybe a hardware issue or software issue.
    Does this issue happen to other mouse?
    Can you test in safe mode to check how it works?
    Alex Zhao
    TechNet Community Support

  • How to Compare date with Current system date in XSLT mapping.

    Hello Experts
    In a XSLT mapping program, I hava a filed, ZZOB which is giving some date.
    which I need to compare with the current date.
    Condition-
    ZZOB is greater than current date or ZZOBLIG = NULL
    Then go further statements.
    how can i campare with the current date?
    Please help.
    Thanks
    Balaprasad

    This example may help:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:param name="currentDate"/>
        <xsl:variable name="firstDate" select="concat(substring($currentDate, 1,4),substring($currentDate, 6,2),substring($currentDate, 9,2))"/>
        <xsl:template match="/">
            <xsl:apply-templates select="//item"/>
        </xsl:template>
        <xsl:template match="item">
            <xsl:variable name="secondDate" select="concat(substring(submissionDeadline, 1,4),substring(submissionDeadline, 6,2),substring(submissionDeadline, 9,2))"/>
            <xsl:choose>
            <xsl:when test="$firstDate &gt; $secondDate">
                <xsl:call-template name="late"/>
                </xsl:when>
                <xsl:when test="$firstDate &lt; $secondDate">
                    <xsl:call-template name="ontime"/>
                </xsl:when>
                <xsl:when test="$firstDate = $secondDate">
                    <xsl:call-template name="same"/>
                </xsl:when>
                <xsl:otherwise>Monkeys<br /></xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="ontime">
            This is on time
        </xsl:template>
        <xsl:template name="late">
            This is late
        </xsl:template>
        <xsl:template name="same">
            This is on time
        </xsl:template>
    </xsl:stylesheet>

  • How to get the exact day date with the another date field?

    Hi,
    Please help me how to get the specific day of the week's date with the help of another date field.
    Actually , one field(week_day) has 1,2,3,4,5,6,7 here 1--MON,2-- TUE like that.
    another field has the date. based on that date, we have to go to that particular week and need to pick up the date by the above week_day. It should be in that week itself.
    Thanks in advance!!
    Regards,
    Vissu...
    Edited by: vissu on Oct 29, 2010 3:07 AM

    Hi,
    Something like this
    SELECT TRUNC(<DATE_COLUMN>,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the particular week of the date
    SELECT TRUNC(SYSDATE,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the current week
    cheers
    VT

  • Insert same data with next holiday date

    Hi All,
    I have write a pl block where in i need to copy the existing records from the
    table A to table A itself with date+1.
    Say for eg. there is a situation were daily one record is inserted into table A
    and there is a data column init but NO records for sat,sunday and holidays
    I need to write a block to insert records for sat,sun and holiday in the table A
    which rec? if rec is missing for say for eg date 04/May/2007 then I need to take
    records from 03/May/2007 and insert a new records by copying all the rec from previous date with data column in A as 04/May/2007.
    like wise there are lac of rec in table A and thousands of missing rec for sat,sun & holiday.
    I am trying to do this by taking cursor and finding out the missing rec and insert it.
    i have just started can any one of you help in this. by posting the best logic for this
    Thanks,
    AAK.

    Hi1
    pls try this --
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL>
    SQL> set lin 1000
    SQL>
    SQL> select * from emp_q;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO C PHONE
          7777 Avik       CLERK           7839 02-MAR-07       3456        263         30 M 12547896
          6666 prithwi    CLERK           7839 22-JUL-06       1234        248         30 M 14782563
          7639 Roni       CLERK           3434 17-DEC-80      12121                    50 F
          7499 ALLEN      SALESMAN        7469 20-FEB-81       1234        300         30 M
          7521 WARD       SALESMAN        7698 14-FEB-07       1234        500         10 F
          7566 JONES      MANAGER         7469 02-APR-81       1000                    10 F
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1234       1400         53 F
          7698 BLAKE      MANAGER         7839 01-MAY-81       1234                    40 M
          7782 CLARK      MANAGER         7839 09-JUN-81       1234                    20
          6194 Verona     CLERK           7839 30-APR-07       2365        125         30 F 12543698
          6698 Fereda     CLERK           7839 30-APR-07       2365        125         30 M 12543698
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO C PHONE
          6903 Aliva      CLERK           7839 30-APR-07       2365        125         30 F 12543698
          7411 Naba       CLERK           7839 27-APR-07       1450        452         30   29631478
          7529 Indra      SALESMAN        7839 27-APR-07       5025        250         30 M 28963147
          7698 BLAKE      MANAGER         7839 01-MAY-81       1234                    40 M 23515485
          7782 CLARK      MANAGER         7839 09-JUN-81       1234                    20   23651489
          7788 SCOTT      ANALYST         7566 19-APR-87       1234                    40 F 25483698
          7839 KING       PRESIDENT       7839 17-NOV-81       1234                    40 F 23691436
          7844 TURNER     SALESMAN        7698 08-SEP-81       1234          0         30 F 23459687
          7876 ADAMS      CLERK           7788 23-MAY-87       1234                    10 M 23984297
          7900 BARRY      CLERK           7698 03-DEC-81       1234        500         10 F 25983147
          7902 FORD       ANALYST         7566 03-DEC-81       1234                    40 F 29541236
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO C PHONE
          7934 MILLER     CLERK           7458 23-JAN-82       1234                    10 F 24893175
    23 rows selected.
    SQL>
    SQL>
    SQL> insert into emp_q
      2  select empno,ename,job,mgr,sysdate+1,sal,comm,deptno,code,phone
      3  from emp_q
      4  where empno = 7777;
    1 row created.
    SQL>
    SQL>
    SQL> commit;
    Commit complete.
    SQL>
    SQL> select * from emp_q;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO C PHONE
          7777 Avik       CLERK           7839 02-MAR-07       3456        263         30 M 12547896
          6666 prithwi    CLERK           7839 22-JUL-06       1234        248         30 M 14782563
          7639 Roni       CLERK           3434 17-DEC-80      12121                    50 F
          7499 ALLEN      SALESMAN        7469 20-FEB-81       1234        300         30 M
          7521 WARD       SALESMAN        7698 14-FEB-07       1234        500         10 F
          7566 JONES      MANAGER         7469 02-APR-81       1000                    10 F
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1234       1400         53 F
          7698 BLAKE      MANAGER         7839 01-MAY-81       1234                    40 M
          7782 CLARK      MANAGER         7839 09-JUN-81       1234                    20
          6194 Verona     CLERK           7839 30-APR-07       2365        125         30 F 12543698
          6698 Fereda     CLERK           7839 30-APR-07       2365        125         30 M 12543698
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO C PHONE
          6903 Aliva      CLERK           7839 30-APR-07       2365        125         30 F 12543698
          7411 Naba       CLERK           7839 27-APR-07       1450        452         30   29631478
          7529 Indra      SALESMAN        7839 27-APR-07       5025        250         30 M 28963147
          7698 BLAKE      MANAGER         7839 01-MAY-81       1234                    40 M 23515485
          7782 CLARK      MANAGER         7839 09-JUN-81       1234                    20   23651489
          7788 SCOTT      ANALYST         7566 19-APR-87       1234                    40 F 25483698
          7839 KING       PRESIDENT       7839 17-NOV-81       1234                    40 F 23691436
          7844 TURNER     SALESMAN        7698 08-SEP-81       1234          0         30 F 23459687
          7876 ADAMS      CLERK           7788 23-MAY-87       1234                    10 M 23984297
          7900 BARRY      CLERK           7698 03-DEC-81       1234        500         10 F 25983147
          7902 FORD       ANALYST         7566 03-DEC-81       1234                    40 F 29541236
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO C PHONE
          7934 MILLER     CLERK           7458 23-JAN-82       1234                    10 F 24893175
          7777 Avik       CLERK           7839 04-MAY-07       3456        263         30 M 12547896
    24 rows selected.
    SQL> Regards.
    Satyaki De.

  • How to compare date with thr current date

    Hi,
    I have an inout string which is in date format(dd/mm/yyyy hh:mm:ss) .
    what i need to do is comparing this date string with the current date. if my input string is less than current date , then display error message..
    how to do this?
    regards

    Excellent suggestions from all of you people!
    finally i got the solution
    code is:
    import java.util.*;
    import java.text.*;
    public class TestDate {
      public static void main(String args[]){
        TestDate a = new TestDate();
      TestDate() {
        String DATE_FORMAT = "dd/MM/yyyy hh:mm:ss";
         Date today = new Date();
         Date myDate=null;
        java.text.SimpleDateFormat sdf =
             new java.text.SimpleDateFormat(DATE_FORMAT);
         try{
         myDate = sdf.parse("01/06/2006 00:00:00");
         }catch(Exception e) {System.out.println(e);}
        Calendar c1 = Calendar.getInstance();
        Calendar c2 = Calendar.getInstance();
        c1.setTime(today);
        c2.setTime(myDate1);
        System.out.print(sdf.format(today));
        System.out.print(sdf.format(c1.getTime()));
        if (c1.before(c2)) {
           System.out.print(" is before ");
        if (c1.after(c2)) {
           System.out.print(" is after ");    
        if (c1.equals(c2)) {
           System.out.print(" same as ");    
    System.out.print(sdf.format(c2.getTime()));
      }

  • Pages '09: Can't select multiple objects with mouse?

    Hello! I want to select some shapes. I know that I can hold down shift and click on them individually one by one, but they're very many and grouped together, so I just want to draw a 'selection-rectangle' with the mouse, just as it works in all other programs I've ever used. But this doesn't seem to work. What am I doing wrong?

    Hello Stef,
    You can simply click and drag over an area to select multiple objects if you are in a Page Layout document, but since this is your fourth post you may be new to Pages and you may not yet even be aware of the Page Layout mode. At the top of your Pages window is the document title and next to the title in parentheses are the words "Word Processing" or "Page Layout".
    So, in a Word Processing document, it's just a little bit more involved. In the upper left corner of the window, click on the View icon and select "Show Layout". You will see gray around the edges - your desktop, a white sheet - your paper, and three rectangular outlines - the header field, the text frame and the footer field. This assumes that you have the Header and Footer turned on.
    As you move your mouse, the text insertion bar, a vertical line with curved features top and bottom, will move about the document. Move the insertion bar to the margin, outside of the boxes, and press and hold the COMMAND key. Your cursor will change to an arrowhead. Now you can select multiple objects by click-dragging, just as you are accustomed to doing in other applications.
    Regards,
    Jerry

  • Selecting Multiple Objects with Output Preview Causing Problems

    I'm trying to edit a PDF and need to select multiple objects. Without Output Preview open, I can easily select all the items I need using the shift key. With Output Preview open, whenever I try to select the second object, Output Preview creates a sticky note, instead of selecting the second object.
    I am also using the PitStop Pro plug-in.
    Any idea how to correct this problem? Thanks!

    Unfortunately it seems that the new sticky note feature with the output preview in Acrobat XI uses the same keyboard shortcut as multiple selection tool in Pitstop (shift).
    Closing the output preview is the easiest way to get around this issue.
    We could consider changing the key for multiple selection in PitStop, but 'shift' is pretty much a default, so what could we change it too?
    If anyone has any thoughts could they email me, I am the product manager responsible for Pitstop at Enfocus and my email is '[email protected]'
    All feedback gratefully received.

Maybe you are looking for