Generic Search Date Format

Hello all,
In B2C, when searching for open orders or completed orders, the result list is displaying the AUDAT in format yyyymmdd.  The rest of the B2C site displays dates in mm/dd/yyyy format. 
I have not been able to locate where to change this date format.  Is there a specific config file, or xcm that needs to be modified?
Thanks,
Steven

I was able to figure this out.
I was working on hiding the Description field of the B2B template screen when I noticed the date field had fieldOutputHandler attributes.  I added the following attributes to the AUDAT property of the B2C section of generic-searchbackend-config.xml and now the date is being formatted correctly.
fieldOutputHandlerClass="com.sap.isa.ui.uiclass.r3.genericsearch.GenericSearchUIDynamicContentERP" fieldOutputHandlerMethod="getAudatToUIDate"

Similar Messages

  • Forms6i - Search by hours, or minutes in Date Format.

    Hi All:
    Is it possible to search by hours,minutes, or seconds in the date format? I've tried the below SQL but it doesn't work.
    SELECT to_char(start_date, 'MM/DD/YY HH24:MI:SS') start_date
    FROM table_name
    WHERE start_date like '%05%';
    It returns no rows selected instead of the following rows.
    09/11/02 05:27:33
    09/11/02 05:27:35
    Please help.
    Thanks in advance,
    Regards,
    TD

    Hi,
    Change the WHERE clause,
    Where To_Char(start_date, 'DD-MM-YYYY hh24:mi:ss') Like '%05%'
    Ta
    Shailender
    Hi All:
    Is it possible to search by hours,minutes, or seconds in the date format? I've tried the below SQL but it doesn't work.
    SELECT to_char(start_date, 'MM/DD/YY HH24:MI:SS') start_date
    FROM table_name
    WHERE start_date like '%05%';
    It returns no rows selected instead of the following rows.
    09/11/02 05:27:33
    09/11/02 05:27:35
    Please help.
    Thanks in advance,
    Regards,
    TD

  • Search managed property date format dd/mm/yyyy instead of mm/dd/yyyy

    All regional settings in the site collections and the search site have been set to English(Australia), and the date format is correct within them however when I try to perform a search on a managed date property date:dd/mm/yyyy I do not get the expected
    results. I only get the correct results when searching date:mm/dd/yyyy.
    I found some articles regarding SP2010 and this issue, the correct answer was a link to a TechNet article with information about how to modify the XSLT in the results web part in the search centre. I could not find the XSLT in the results web part properties
    in SP2013 so I don't know if this information is redundant or if there is an easier way.
    It really seems like such a simple and common request so I can only imagine that its too obvious to blog about considering the time I've put into google on this one, and am I'm missing something here?
    Thanks,

    Hi karlostavitch,
    This issue seems to be caused by Query Language. Query Language is not the language of the Browser interface, but the language submitted to web sites. By default, the property of search results is null, the locale will be inferred from the browser language.
    You can change query language by exporting the Search web part, then adding query language property to the file.
    More information, please refer to the link:
    http://blog.orbitone.com/post/Language-sensitive-search-results-in-SharePoint
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Date format when searching

    Is there a way to apply the date format specified in the control hints of the entity object (or view object) also to the search mode in JClient, e.g. 'dd.MM.yyyy'?
    The only way I see at the moment is to add an ActionListener to the execute button and reformat the given date. Can this be done easier?
    Thanks a lot,
    Matthias

    You're not the only one.
    We're developing a system that may well use different date formats for different instances, so we can't hardcode the date format.
    Anyone got any clues?
    Are you there Oracle?

  • Increasing the date range in generic search

    Hello,
    Is there an easy way to increase the date range in generic search to more than 1 year (the last year option in the dropdown)?
    Our release is ecommerce 7.
    Many thanks
    Stefan

    Check if the BAPI is able to give results for more than a year. If thats possible, add new select options to the jsp of the search view.

  • Generic Date Format

    Hi Folks,,
    I am using regex in my java code ..i need to specify the date as generic format...i tried with some cde ..i ned your suggestions whether is it correct..am i going in right path??
    Dated<space><DateFormat>
    Here is my java code:
    Matcher Assetdate=Pattern.compile(("Dated\\s*|\\d*/\\d*/\\d*|\\w*-\\d*-d*"),Pattern.CASE_INSENSITIVE).matcher(line1);
                while(Assetdate.find()){
                System.out.println(Assetdate.group());
                                        }Thanks.

    If you want to support all date formats valid in an XML document use XMLGregorianCalendar to parse dates:
    [http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendar(java.lang.String)]
    -Puce

  • Date format error in Search help

    Hi,
    I am using standard search help in my ABAP webdynpro application.It is related to payscale group (field P0008-TRFGR). It works fine if I do not specify any date but gives a error message "Enter date in the format __.__.____ "   irrespective of the date format I use to enter.
    Any pointers ?
    Regards
    Deepak

    Hi Deepak,
    Try following things:
    1) check separator / instead of .
    2) date in format mm.dd.yyyy or dd.mm.yyyy
    3) enter date through search help
    4) enter 0 before one digit month or day i.e. 02/02/2009 instead of 2/2/2009
    Regards,
    Saket.

  • Af:table filter date format : task-flow navigation issue

    hi
    When trying to use the date format configured on the Entity Object, with Format Type as Simple Date and Format as "dd-MM-yyyy", there seems to be a problem when using task-flows.
    The approach involves an explicitly configured attributeValues binding to use in f:validator and af:convertDateTime components in the af:inputDate in the filter facet, as discussed in the forum thread "af:table filter date format"
    at af:table filter date format
    I used JDeveloper 11.1.1.3.0 to create the example application
    in http://www.consideringred.com/files/oracle/2010/TableFilterDateFormatIssueApp-v0.03.zip
    - The page filterEmp.jspx shows expected behaviour, the filter uses the configured date format and there is no problem when navigating to another page and back.
    see the screencast at http://screencast.com/t/CtQ9rsVFH3k
    - The page menuBTFPage.jspx allows for some navigation after using the filter resulting in the filter showing a date in the wrong format, using scenario (sc1)
    -- (sc1-a) : run menuBTFPage.jspx
    -- (sc1-b) : on "menu-btf : menu", click the "do go-filter-emp-btf" link
    -- (sc1-c) : on "filter-emp-btf : filterEmpFragment", filter on HireDate using "10-03-2005"
    -- (sc1-d) : click the "do goReturnSuccess" button
    -- (sc1-e) : back on "menu-btf : menu", click the "do go-filter-emp-btf" link again
    -- (sc1-f) : back on "filter-emp-btf : filterEmpFragment", see the HireDate filter value in the wrong format as "2005-03-10"
    -- (sc1-g) : click the "do goReturnSuccess" button again, which results in an error "The date is not in the correct format."
    see the screencast at http://www.screencast.com/t/ORHauBd3oQ
    questions:
    - (q1) Can the behaviour in scenario (sc1) be reproduced?
    - (q2) Why is the filter value in the wrong date format in step (sc1-f)?
    - (q3) What can be done to have the filter value consistently in the configured date format, so that errors as in step (sc1-g) can be avoided?
    many thanks
    Jan Vervecken

    hi
    First a short summary of relevant aspects of service request 3-2190488381:
    - development has reviewed bug 10193260
    - development identified some code where a pattern was not applied and started fixing the problem
    - out of the blue, development asked "Will clearing out the filter field completely when moving out of ataskflow be an acceptable behavior ?"
    - I pointed out some concerns (even in a phone call with development), but development did not see any alternative not "perceived to be very risky because of the current design", so the question whether the clearing-all-filter-fields approach would be acceptable became superfluous.
    - following this, bug 10193260 suddenly became an enhancement request (for reasons I still don't understand)
    - a workaround was suggested (for behaviour not perceived as a bug), "Clearing the search fields during taskflow exit in the backing bean (in the app)." for which I also received a modified version of my example application TableFilterDateFormatIssueApp-v0.04.zip with an implementation of the suggested workaround
    As an exercise to try an understand the suggested workaround (an because my example application seemed to have been modified using the currently yet-to-be-released JDeveloper 11.1.1.4.0) I re-implemented it in the example application
    at http://www.consideringred.com/files/oracle/2010/TableFilterDateFormatIssueApp-v0.05.zip
    It has a filter-emp-workaround-btf task-flow with a method-call activity on a managed-bean method, responsible for clearing the search fields, resulting in behaviour where the error "The date is not in the correct format." does not occur,
    as can be seen in the screencast at http://screencast.com/t/Nq7TkkRQ
      public void clearFilterFields()
        BindingContainer vBindingContainer =
          BindingContext.getCurrent().getCurrentBindingsEntry();
        DCBindingContainer vDCBindingContainer = (DCBindingContainer)vBindingContainer;
        DCDataControl vDCDataControl = vDCBindingContainer.getDataControl();
        ApplicationModule vApplicationModule = vDCDataControl.getApplicationModule();
        ViewObject vViewObject = vApplicationModule.findViewObject("EmployeesVOVI");
        ViewCriteriaManager vViewCriteriaManager = vViewObject.getViewCriteriaManager();
        vViewCriteriaManager.clearViewCriterias();
        vViewObject.clearCache();
      }Because the managed-bean method requires access to the ADF Model binding layer to get to the View Object instance used for the filtered table, the method-call activity has a page element configured in DataBindings.cpx referring to the same usageId as the page element for the page fragment showing the filtered table. So that both the method-call and view activity depend on one and the same Binding Container (e.i. PageDef file).
    The method-call activity, responsible for clearing the search fields, would need to be called before each task-flow-return activity.
    As there can be multiple view activities with multiple filtered tables in a bounded task-flow, would that result in multiple method-call activities responsible for clearing search fields (all to be called before each task-flow-return activity)?
    It looks like a more general/generic approach is desirable for the suggested workaround to be feasible.
    - (q5) Does the suggested workaround imply (as bug 10193260 is not a bug) that all bounded task-flows with filtered tables should implement it to avoid errors about formatting?
    thanks
    Jan

  • How do I set a custom time & date format in the top bar?

    Hello guys,
    Very embarassing question, because I've had Apple's for all of my life (starting with the original Apple Macintosh) but I still haven't figured out one thing
    How do I set a custom time & date format in the top bar?
    When I go to System Preferences > Language & Text > Formats I can set different formats. I have no idea where you will see these, but I know that it's not the top bar where the time and date is being displayed. Because no matter what I enter, the format in the top bar will stay the same. I can only choose things like 24-Hour clock or not, blinking dots and so on in the Time & Date settings from the System Preferences.
    Can anyone here point me in the right direction? I see you can even choose to display the week of the year - I'd love to do that!
    All help appreciated!
    Greetings

    Language & Text system preferences, Formats tab, customize dates.
    There are also many third party menu item utilities that can.  Search Macupdate.com for some.
    One search yielded iClock Pro.  Although I never used it I would think it allows customization.  The link I gave you is to the Macupdate download page for that app.  On that same page is a Similar Software section which has other apps that can do the same thing. 
    One listed is iStat Menus.  The primary use for iStat Menus is not for displaying date/time but it does do that.  And I know it can do what you want because I use iStat Menus to track temperature sensors n my machine and, like you, I want to customize the menu time/date.  So I use it instead of the apple clock.  It does have the customization features I think you are looking for.

  • How to add a new field to an existing Generic Search result list?

    Good day,
    I'm new to the concepts of the Generic Search Framework.  I'm attempting to add a new field to an existing result list, and have that new field restricted to a value of "C".  This new field will not be displayed, it is only used to ensure that Invoice Documents with a DocStatus of "C" are returned to the B2B Application.
    From the *modification\generic-searchbackend-config.xml file, the existing
    <h4><property-group name="billing_resultlist_B2B_R3">
      <property name="BILLINGDOC" columnTitle="sbt.sbs.genericsearch.billing.invoice.title" parameterType="rowkey" hyperlink="b2b/documentstatusdetailprepare.do" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildAttributesForBillingDocumentDetails" linkTargetFrameName="form_input" />
      <property name="BILL_DATE" type="date" columnTitle="status.sales.date" writeUnderProperty="BILLINGDOC" defaultSortSequence="DESCENDING" />
      <property name="NET_VALUE" type="number" columnTitle="status.billing.detail.netvalue" fieldOutputHandlerClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" fieldOutputHandlerMethod="buildBillingNetValue" cssClassName="amount" />
      <property name="CURRENCY" type="hidden" />
      <property name="PAYER" columnTitle="gs.hd.gl.partner" linkParamClass="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIDynamicContent" linkParamMethod="buildShowPartnerLinkSales" />
      <property name="PAYERS_GUID" type="hidden" />
      <property name="SD_DOC_CAT" type="hidden" />
      <property name="OBJECTS_ORIGIN" type="hidden" />
    </property-group>
    </h4>
    I'm trying to better understand how the R/3 tables and columns are specified in the Generic Search Framework.  I know that the R/3 table and field is: VBRK.RFBSK, but in the configuration XML files, I never see this exact information specified.   How it is specified to be a part of the result set?
    After reading the section in the Development and Extension Guide, I also learned about the "allowedValue" definition, and I believe that I will use that to specify the "C" value for the Invoice Document Status field.
    I would greatly appreciate any help.
    Thanks,
    _kevin

    Hi Kevin,
    this means you are working in this section of the generic-searchbackend-config.xml
                 <property-group name="SearchCriteria_B2B_Billing"
                                 useSearchRequestMemory="true">
    Below this property
                    <property name="IRT_BDH_BILL_TYPE"                    
                              type="box"
                              entityType="BEART_BILL_TYPE"
                              tokenType="EXP"
                              requestParameterName="rc_documenttypes"
                              label="gs.att.lbl.doc.type"
                              UIJScriptOnChange="GSloadNewPageR3(this);">
                        <allowedValue value="ORDER"           description="b2b.status.shuffler.key1val2"/>                   
                        <allowedValue value="QUOTATION"       description="b2b.status.shuffler.key1val1" />
                        <allowedValue value="INQUIRY"         description="b2b.status.shuffler.key1val11" />
                        <allowedValue value="ORDERTMP"         description="b2b.status.shuffler.key1val3" />
                        <allowedValue value="CONTRACT"        description="b2b.status.shuffler.key1val4" />
                        <allowedValue value="INVOICE"         description="b2b.status.shuffler.key1val5"  default="true"/>
                        <allowedValue value="CREDITMEMO"      description="b2b.status.shuffler.key1val6" /> 
                        <allowedValue value="DOWNPAYMENT"     description="b2b.status.shuffler.key1val7" />
                        <allowedValue value="AUCTION"         description="b2b.status.shuffler.key1val9" />
                    </property>
    please try adding this new property
                    <property name="DOCUMENT_STATUS(1)"
                              entityType="CL_CRM_REPORT_SET_STATUS"
                              tokenType="RAN"
                              type="hidden"
                              requestParameterName="rc_status_head1" value="C" />
    This should do the trick. Unfortunately, I don't have a E-Commerce scenario with an ERP backend for testing purposes available to you have to test it yourself. Keep me updated with the test results !      
    Philipp Koock
    SAP CRM Web Channel Consultant
    http://www.koock.net

  • Date format in MVIEW

    Hi All,
    I have creted the snapshot as
    CREATE SNAPSHOT EMPLOYEE_CRIS_MVIEW
    PCTFREE 10
    PCTUSED 40
    MAXTRANS 255
    TABLESPACE users
    STORAGE (
    INITIAL 40960
    NEXT 73728
    PCTINCREASE 1
    MINEXTENTS 1
    MAXEXTENTS 505
    BUILD IMMEDIATE
    REFRESH ON DEMAND
    With rowid
    AS
    select
    emp_id,
    join_dt,
    emp_stat,
    from employee_CRIS
    The date format for the column join_dt is dd-mon-yyyy.
    But I want to modify the date format for this column as 'MM/DD/YYYY'.
    For that I tried
    ALTER snapshot EMPLOYEE_CRIS_MVIEW modify(TO_CHAR(join_dt,'MM/DD/YYYY'));
    But I got the error
    ERROR at line 1:
    ORA-00902: invalid datatype
    Could you please help me to change the change the date format of the column of the snapshot
    with out dropping the snapshot.
    Please help me.
    Thanks in advance.

    What people are saying is that date columns (of DATE datatype) are stored internally using a fixed internal notation, which is essentially a series of bytes that describe the date.
    e.g.
    SQL> select empno, ename, hiredate, dump(hiredate) as dump_hiredate from emp;
         EMPNO ENAME      HIREDATE            DUMP_HIREDATE
          7369 SMITH      17/12/1980 00:00:00 Typ=12 Len=7: 119,180,12,17,1,1,1
          7499 ALLEN      20/02/1981 00:00:00 Typ=12 Len=7: 119,181,2,20,1,1,1
          7521 WARD       22/02/1981 00:00:00 Typ=12 Len=7: 119,181,2,22,1,1,1
          7566 JONES      02/04/1981 00:00:00 Typ=12 Len=7: 119,181,4,2,1,1,1
          7654 MARTIN     28/09/1981 00:00:00 Typ=12 Len=7: 119,181,9,28,1,1,1
          7698 BLAKE      01/05/1981 00:00:00 Typ=12 Len=7: 119,181,5,1,1,1,1
          7782 CLARK      09/06/1981 00:00:00 Typ=12 Len=7: 119,181,6,9,1,1,1
          7788 SCOTT      19/04/1987 00:00:00 Typ=12 Len=7: 119,187,4,19,1,1,1
          7839 KING       17/11/1981 00:00:00 Typ=12 Len=7: 119,181,11,17,1,1,1
          7844 TURNER     08/09/1981 00:00:00 Typ=12 Len=7: 119,181,9,8,1,1,1
          7876 ADAMS      23/05/1987 00:00:00 Typ=12 Len=7: 119,187,5,23,1,1,1
          7900 JAMES      03/12/1981 00:00:00 Typ=12 Len=7: 119,181,12,3,1,1,1
          7902 FORD       03/12/1981 00:00:00 Typ=12 Len=7: 119,181,12,3,1,1,1
          7934 MILLER     23/01/1982 00:00:00 Typ=12 Len=7: 119,182,1,23,1,1,1
    14 rows selected.Here, you can see from the dumped dates that they are all stored as 7 bytes of data, which sort of resemble the date you see on the screen in some way, but not quite. It's an internal format that Oracle understands and uses, and it's important it's stored in this way so that date arithmetic and date range comparisons can be performed easily (and quickly) in queries.
    If we were to alter our sessions date format (the display format for our session only) and query the data again in the same way...
    SQL> alter session set nls_date_format='YYYY-MM-DD';
    Session altered.
    SQL> select empno, ename, hiredate, dump(hiredate) as dump_hiredate from emp;
         EMPNO ENAME      HIREDATE   DUMP_HIREDATE
          7369 SMITH      1980-12-17 Typ=12 Len=7: 119,180,12,17,1,1,1
          7499 ALLEN      1981-02-20 Typ=12 Len=7: 119,181,2,20,1,1,1
          7521 WARD       1981-02-22 Typ=12 Len=7: 119,181,2,22,1,1,1
          7566 JONES      1981-04-02 Typ=12 Len=7: 119,181,4,2,1,1,1
          7654 MARTIN     1981-09-28 Typ=12 Len=7: 119,181,9,28,1,1,1
          7698 BLAKE      1981-05-01 Typ=12 Len=7: 119,181,5,1,1,1,1
          7782 CLARK      1981-06-09 Typ=12 Len=7: 119,181,6,9,1,1,1
          7788 SCOTT      1987-04-19 Typ=12 Len=7: 119,187,4,19,1,1,1
          7839 KING       1981-11-17 Typ=12 Len=7: 119,181,11,17,1,1,1
          7844 TURNER     1981-09-08 Typ=12 Len=7: 119,181,9,8,1,1,1
          7876 ADAMS      1987-05-23 Typ=12 Len=7: 119,187,5,23,1,1,1
          7900 JAMES      1981-12-03 Typ=12 Len=7: 119,181,12,3,1,1,1
          7902 FORD       1981-12-03 Typ=12 Len=7: 119,181,12,3,1,1,1
          7934 MILLER     1982-01-23 Typ=12 Len=7: 119,182,1,23,1,1,1
    14 rows selected.... whilst the hiredate is now showing on the screen in the format we've chosen, the actual internal storage of those dates remains completely unchanged. i.e. we don't have to change the format of the internal storage of dates to make them display differently.
    Likewise you can format dates manually as part of your query using to_char function...
    SQL> select empno, ename, to_char(hiredate,'DD Month YYYY') as hiredate, dump(hiredate) as dump_hiredate from emp;
         EMPNO ENAME      HIREDATE          DUMP_HIREDATE
          7369 SMITH      17 December  1980 Typ=12 Len=7: 119,180,12,17,1,1,1
          7499 ALLEN      20 February  1981 Typ=12 Len=7: 119,181,2,20,1,1,1
          7521 WARD       22 February  1981 Typ=12 Len=7: 119,181,2,22,1,1,1
          7566 JONES      02 April     1981 Typ=12 Len=7: 119,181,4,2,1,1,1
          7654 MARTIN     28 September 1981 Typ=12 Len=7: 119,181,9,28,1,1,1
          7698 BLAKE      01 May       1981 Typ=12 Len=7: 119,181,5,1,1,1,1
          7782 CLARK      09 June      1981 Typ=12 Len=7: 119,181,6,9,1,1,1
          7788 SCOTT      19 April     1987 Typ=12 Len=7: 119,187,4,19,1,1,1
          7839 KING       17 November  1981 Typ=12 Len=7: 119,181,11,17,1,1,1
          7844 TURNER     08 September 1981 Typ=12 Len=7: 119,181,9,8,1,1,1
          7876 ADAMS      23 May       1987 Typ=12 Len=7: 119,187,5,23,1,1,1
          7900 JAMES      03 December  1981 Typ=12 Len=7: 119,181,12,3,1,1,1
          7902 FORD       03 December  1981 Typ=12 Len=7: 119,181,12,3,1,1,1
          7934 MILLER     23 January   1982 Typ=12 Len=7: 119,182,1,23,1,1,1
    14 rows selected.
    SQL>Again, the internal date format remains the same.
    It is important that, when you store date information you store it as DATE datatype and let oracle use it's internal format, so that it can accurately do the date arithmetic, date range searches and date ordering etc., that everyone likes to do in queries. If you try and store it as VARCHAR2 then not only can information be lost (i.e. is '01/02/2010' representing 1st February 2010 or is it 2nd January 2010?) but you prevent date arithmetic, range searches and ordering in your queries from working correctly (i.e. '03/01/2009' would work out to be a greater date than '01/02/2010'). To prove it...
    SQL> select 'Wrong' from dual where '03/01/2009' > '01/02/2010';
    'WRON
    Wrong
    SQL> ed
    Wrote file afiedt.buf
      1* select 'Wrong' from dual where to_date('03/01/2009','DD/MM/YYYY') > to_date('01/02/2010','DD/MM/YYYY')
    SQL> /
    no rows selected

  • Customer Aging Report VT Label Exclusion and Modification of Date Format

    Hi Folks!
    I need your thoughts on how to remove the 'VT' label in all amounts of the Customer Receivables Aging Report.... Since it is a system variable, and already have the VT label when it is called, any remedy on how to remove this?
    In line with this also,
    We would like to modify the date format of the Aging Dates at the Header of the Table of the Report. The system returns the date format YYYY-MM-DD. We would like to change it to DD-MM-YYYY. I used the Concat and date functions provided in the Formula in PLD... but it returns mismatch error.
    I have searched through the forum and find no answers with this. I know that this will help also other users with the same concerns.
    Thanks a lot.
    Fringe

    Skype was causing the problem :@

  • Af:table filtering(inputDate) don't show results for a specific search date

    Hi again to every one.
    I have a database table as :
    sql> describe YES_NO_DATE_TEST
    FECHA TIMESTAMP(6) --> param search
    DESCRIPCION VARCHAR2(200 CHAR)
    VERIFICADO VARCHAR2(1 CHAR)
    I created my Bussines Components, I have a search page, I drag and drop this DataControl as af:table, called : YES_NO_DATE_TESTView1, to a jspx page ( search page ), I enabled sorting and filtering properties in the af:table .
    af:inputDate value="#{vs.filterCriteria.Fecha}" id="id1">
    <af:convertDateTime pattern="#{bindings.YesNoDateTestView1.hints.Fecha.format}"/>
    </af:inputDate>
    I run the search page, and show me a : af:inputDate , for choose and put a date.
    but, when I choose a date, and press the enter key, the search result by af:inputDate, do not show me nothing.
    How I can solve that ?
    Note :
    In the UI Hints of View Object I put this properties :
    format type : simple date
    format : dd-MM-yyyy
    I'm using JDeveloper 11.1.2.0.0

    wht is the database column type..??
    It's a TimeStamp Type. ----> FECHA TIMESTAMP(6)
    what is the query that is getting executed in the backend... when you do the search... ?
    My query in the server is :
    Select
    FECHA,
    DESCRIPCION,
    VERIFICADO
    FROM YES_NO_DATE_TEST;
    are you getting the expected results when you run the query..??
    Yes , I m . The query above is made for the View Object. But I don't why when I put a date in the af:inputDate the search don't show me the results that I hope.
    Or , Need I to Programaticallly access to the InputDate and passed to a bind variable on the query ??

  • Date formats for SQL statements used by recordset object

    Hi,
    Date formatting appears to be quite problematic for Business One.  I did a forum search for date issues and I don't think I saw any of them with an "answered" status.  I have an issue with formatting a date for the creation of an SQL statement that the DI sends to SQL Server 2005.  I need to format a date so that the localization parameters don't matter for either the client machine or SQL Server's machine.  We don't have a problem as long as our machines are localized as USA.
    I have PL 22 and I have a form - ours - where I use the Today() function to fill a date field.  So this is a date that is not entered by the user.  The result of this function is consistent with the localization parameters on my machine.  We have two other date fields on the form where the user must type in the date. 
    As a test, I changed my machine to the UK parameters.  I then set up the language parameters of Business One for English(United Kingdom).  I changed the date format specifications in Business One so that its format is dd/mm/yy.  I then brought up the form and the field that is formatted by the above function arrived in the form's field as dd/mm/yy.  I then typed in the two other dates in the same format and added the record to the database.  The form's table is user-defined. 
    I dismissed the form then brought it back up loaded with the new record.  The date that was entered by the function appeared in USA format (mm/dd/yy).  The dates that were typed in appeared in the Business One format (dd/mm/yy).  This of course is not consistent.
    When I looked at what got into the database, the formats were the opposite.  Weird!  To make matters really confusing, I run an SQL statement within SQL Server Mgt Studio, and use the WHERE clause to filter on the date that was based on the function.  It didn’t matter what format I used for the WHERE clause, the record came up.  Does anyone have any idea about how I can ensure that I always use the correct date format for SQL statements passed by Business One to SQL Server regardless of where in the world the application is being run?
    Thanks,
    Mike

    Ian,
    Here's what I'm concerned about:  I’m using the date in a “WHERE” clause.
    Assume the date is Aug 3, 2007.
    "SELECT * FROM Table WHERE StartDate > ‘8/3/2007’"
    OR
    "SELECT * FROM Table WHERE StartDate > ‘3/8/2007’"
    If the client machine is set up as USA, the today function will provide the date as formatted in the first query.  If the database server is setup as let’s say the UK, I believe that SQL Server query parser will interpret the date as Mar 8, 2007.
    If the client machine is set up as UK, the today function will provide the date as formatted in the second query.  If the database server is setup as let’s say USA, I believe that SQL Server query parser will also interpret the date as Mar 8, 2007.
    In both cases it would be wrong.
    I know I could use the DATEPART function to get the three parts and this will make the code indifferent to the localization specs of the client machine.  I need to then be able to concatenate those date parts for the “WHERE” clause so that the localization specifications of the database server don’t matter.
    Thanks,
    Mike

  • How do I change the date format?

    Sorry, but I'm new to Oracle!
    I'm using "sqlplusw" to build my SQL statements. When I return columns that are date fields, I get the DD-MON-YY format. I want dates to be returned in "YYYY-MM-DD HH24:MI:SS". My DBA won't change the date format on the server, so how do I change SQLPLUS to return dates in the format I want? Do I need set this in some kind of startup file, or a reg key?
    Using client version 9.2.0.5 against a 9.2.0.1 server
    Jeff

    There are a couple of ways you could do it.
    Way 1:
    Search for a file by name 'glogin.sql' on your client work station and add the following statement
    alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure you save the file. This change will apply to all users who will log into the database using SQL*PLUS from your machine.
    Way 2:
    Create a shortcut and place it some where (for example on the 'DESKTOP').
    Right click on the short cut and choose properties.
    Change the text corresponding to the 'Start in' box to reflect the current location of the shortcut.
    Create a file by name 'login.sql' and place it in the same folder as the shortcut.
    Edit the file and add the following line.
    alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure that you save the file.
    When you double click the shortcut to start SQL*Plus and login, the script 'login.sql' is executed.

Maybe you are looking for