Date field separators locale

Hi everybody,
I am working with date fields on both WDJ and R/3. Abap date field separators are ".".
In my locale, WDJ iview date field separators are "/". We want WDJ iview separators to become ".".
I found out this [workshop|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/58a7e390-0201-0010-abb1-8eec7eb7a2ec], at page 83, it is explained that  WDJ locale can be set through a url parameter.
Where should this parameter be set? In the iview configuration, we tried in the "application parameters" the value sap-locale=de, and also the Forced Display Language=German. But no result so far.
Can anyone help?
Thanks and regards,
Vincenzo

Hi, thanks the two following solutions are available:
- in iview application parameters: sap-locale%3Dde (do NOT use the "=" character).
- in your component you can define a method such as
private void internalFormatDate(Date ui_el) {
          SimpleDateFormat formatter =
               (SimpleDateFormat) DateFormat.getDateTimeInstance(
                    DateFormat.LONG,
                    DateFormat.LONG,
                               Locale.GERMAN);
          formatter.format(ui_el);
Thanks, regards,
Vincenzo

Similar Messages

  • How to change timezone in B2B to reflect date fields per local time in DB

    Hi,
    I am in EST zone and I could see the data in database with date columns having time in PST. One of my transaction just errorred , I could see from B2B user interface tool error report message date time as 2:14 EST, while when I check the database values from TOAD the value is 11:14, which indicates there is some setup which might have caused to update Pacific Time in the database, I am not sure what could be the setup. Can anyone please indicate or provide inputs on what could be the cause and how to set up the application so that the date type data is updated with local time in database.
    Thanks
    Sachin Sutar

    Hi Sachin,
    We store the message using the database time. It seems like the database time zone is set to PST. To change it to a different time zone, please follow the instructions on this link:
    http://www.oracle.com/technology/products/oracle9i/daily/may02.html
    Hope this helps,
    Eng

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • Creating external table - from a file with multiple field separators

    I need to create an external table from a flat file containing multiple field separators (",", ";" and "|").
    Is there any way to specifiy this in the CREATE TABLE (external) statement?
    FIELDS TERMINATED BY "," -- Somehow list more than just comma here?
    We receive the file from a vendor every week. I am trying to set up a process for some non-technical users, and I want to keep this process transparent to them and not require them to load the data into Oracle.
    I'd appreciate your help!

    scott@ORA92> CREATE OR REPLACE DIRECTORY my_dir AS 'c:\oracle'
      2  /
    Directory created.
    scott@ORA92> CREATE TABLE external_table
      2    (COL1 NUMBER,
      3       COL2 VARCHAR2(6),
      4       COL3 VARCHAR2(6),
      5       COL4 VARCHAR2(6),
      6       COL5 VARCHAR2(6))
      7  ORGANIZATION external
      8    (TYPE oracle_loader
      9       DEFAULT DIRECTORY my_dir
    10    ACCESS PARAMETERS
    11    (FIELDS
    12         (COL1 CHAR(255)
    13            TERMINATED BY "|",
    14          COL2 CHAR(255)
    15            TERMINATED BY ",",
    16          COL3 CHAR(255)
    17            TERMINATED BY ";",
    18          COL4 CHAR(255)
    19            TERMINATED BY ",",
    20          COL5 CHAR(255)
    21            TERMINATED BY ","))
    22    location ('flat_file.txt'))
    23  /
    Table created.
    scott@ORA92> select * from external_table
      2  /
          COL1 COL2   COL3   COL4   COL5
             1 Field1 Field2 Field3 Field4
             2 Field1 Field2 Field3 Field4
    scott@ORA92>

  • Date fields in XML

    Does anyone know if you can have date fields in XML documents so you can sort fields in date order etc.
    Thanks

    Please post what version of JDeveloper you are using. Also post a small sample application that shows what you are trying to do.
    I am not sure what you mean. Are you trying to display a date from the database, or have the user enter a date?
    The date format is determined from the client browser locale. It will default to the US date format mm/dd/yy unless the browser locale is overridden.
    If you want the user to enter a date, you should be using <dateField>. This will also expect mm/dd/yy unless you override it with a validater. Please refer to the UIX Element Reference. This documents <dateField>. The <onSubmitValidater> is a child of <dateField>, it is also documented in the Element Reference. <date> is the validater you want, it is a child of <onSubmitValidater>. You can specify a validation pattern.

  • Setting and updating Date field in a jsp form

    Hi:
    I have a form (in jsp) where in I have a field for Date. The Date is entered in the form: 12/18/2002. I using beans to retrieve the form values and then pass to the program. THe date field is passed as String to the bean. The program changes the String to util date
    (assignment ===> name of bean)
    String strDate = assignment.getDueDate();
    java.util.Date adate = null;
    DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT,Locale.US);
    try {  
    adate = fmt.parse(strDate);
    System.out.println("Util date in Bo: "+adate);
         catch (ParseException e)
              System.out.println(e);
    and before inserting into database, it is changed from util.date to sql.date.
    long time = adate.getTime();
    java.sql.Date sqldate = new java.sql.Date(time);
    Until now everythign is working fine. On my way back, when i retrieve the sql.date from the database, I change it to util date:
    java.sql.Date sqlDate = rs.getDate("dueDate");
    java.util.Date uDate = sqlDate;
    and then covert this util date to String
    String strDate = uDate.toString();
    When I display this string date on my form... it is in the format
    2002-12-18, although i have inserted it in 12/18/2002 format.
    Can anyone help me since i want my date to appear on the form in the format I enter (12/18/2002) and not the 2002-12-18 format of database

    Already answered elsewhere.

  • Adobe offline form with capablity to read data from a local data base.

    Hi ,
            We have customer requirement for a offline Adobe form which will be used by Sales rep, this form when saved to the local hard disk is required to read data from another local data base available in the laptop  and prefill a few fields in the form . 
    Is this requirement technically feasible using Adobe forms?
    Thanks
    Srikanth S

    Well may be it's possible because if you go to the Data View in ALD and create a new Data Connection --> OLEDB database --> Build --> It gives you various options for connecting to different DBs but frankly speaking I have never tried it.
    Check the ALD help for more information on the topic.
    Using LiveCycle Designer > Working with Data Sources > Connecting to a data source > To create a data connection to an OLE database
    Chintan

  • Two questions on apex_item.text when date field

    Hi, I have a tabular collection with a date field. I need to have validation on the date field, so wanted to create and authorization (is this the best way). In order to do so, I needed to create an application item (again...is this the best way?).
    I am very new to javascript and use of the ONCHANGE. Is there a way to have a the value of this apex_item.text placed into that application_item? I have tried the following, but it does not work.
    select apex_item.text(6,c006,10,null,
    ||'style="width:100px;background-color:#FBEC5D; "'
    ||'onchange="f_set_start_date(this,f6_'||LPAD (seq_id, 4,'0')||')"') start
    from apex_collection...where.....
    Also, is there a way to force a format for an apex_item.text. I would like it to be in the format dd-mon-yyyy.
    thanks again.

    Hi Ravi, the javascript is located in the page header.
    the Javascript (and this is long as the form has many (8) cascading LOVs) is:
    <script language="JavaScript" type="text/javascript">
    htmldb_delete_message='Are you sure you want to delete the selected records?';
    // Row - Highglight Function
    var rowStyle = new Array(10);
    var rowActive = new Array(10);
    var rowStyleHover = new Array(10);
    rowStyle[1]='';
    rowStyleHover[1]='';
    rowActive[1]='N';
    function highlight_row(checkBoxElemement,currentRowNum)
    if(checkBoxElemement.checked==true)
    for( var i = 0; i
    < checkBoxElemement.parentNode.parentNode.childNodes.length; i++ )
    if (checkBoxElemement.parentNode.parentNode.childNodes.tagName=='TD')
    if(rowActive=='Y')
    rowStyle[currentRowNum] = rowStyleHover[currentRowNum];
    else
    {rowStyle[currentRowNum] =
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor;
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor
    = '#FFFF66';
    rowStyleHover[currentRowNum] = '#FFFF66';
    else
    for( var i = 0; i
    < checkBoxElemement.parentNode.parentNode.childNodes.length; i++ )
    if (checkBoxElemement.parentNode.parentNode.childNodes[i].tagName=='TD')
    checkBoxElemement.parentNode.parentNode.childNodes[i].style.backgroundColor = '';
    rowStyleHover[currentRowNum] = '';
    document.wwv_flow.f11.checked=false;
    // Funntion to Check and un-check rows Rows
    function checkAllDetail(pAllCheckbox)
    if (pAllCheckbox.checked)
    for (var i = 0; i<document.wwv_flow.f11.length; i++)
    if (!document.wwv_flow.f11[i].checked)
    document.wwv_flow.f11[i].checked=true;
    highlight_row(document.wwv_flow.f11[i],i);
    } else
    for (var i = 0; i<document.wwv_flow.f11.length; i++)
    if (document.wwv_flow.f11[i].checked)
    document.wwv_flow.f11[i].checked=false;
    highlight_row(document.wwv_flow.f11[i],'');
    }; // checkAllDetail
    // Cascading Select List Function
    function f_set_casc_sel_list_item(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for Market Category
    function f_set_casc_sel_list_item_mkt(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_mkt',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for Grade
    function f_set_casc_sel_list_item_grd(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_grd',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for PORT
    function f_set_casc_sel_list_item_port(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_port',0);
    get.add('TAB_CASCADING_ITEM',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // Cascading Select List INSTATE
    function f_set_casc_sel_list_item_distance(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_instate',0);
    get.add('TAB_CASCADING_DISTANCE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for AREA
    function f_set_casc_sel_list_item_area(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_area',0);
    get.add('TAB_CASCADING_INSTATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for SUB-AREA
    function f_set_casc_sel_list_subarea(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_subarea',0);
    get.add('TAB_CASCADING_AREA',$x(pThis).value);
    get.add('TAB_CASCADING_INSTATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for LOCAL-AREA
    function f_set_casc_sel_list_local(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=tab_casc_sel_list_local',0);
    get.add('TAB_CASCADING_SUBAREA',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for GEAR
    function f_set_casc_sel_list_gear(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value);
    get.add('TAB_CASCADING_GEAR',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    // cascading list for start_date
    function f_set_start_date(pThis,pSelect){
    alert("hello");
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value);
    get.add('TAB_START_DATE',$x(pThis).value);
    gReturn = get.get('XML');
    //alert(gReturn);
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[i];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    function KeyCheck(e)
    var KeyID = (window.event) ? event.keyCode : e.keyCode;
    //alert(KeyID); // If you want to check out the values for other buttons
    if (KeyID == 120)
    doSubmit('SAVE'); // SAVE F9
    if (KeyID == 121)
    doSubmit('COMPLETE'); // complete F10
    </script>
    The actual (long) query is (and the date value is C006):
    select apex_item.hidden (1,seq_id) checkbox,
    apex_item.hidden (2,seq_id)||
    apex_item.select_list_from_query(3,c003,'select partner_name d,
    state_code r
    from partners
    where state_code is not null
    order by partner_name',
    'style="width:100px;background-color:#FBEC5D; "'
    ||'onchange="f_set_casc_sel_list_item_port(this,f4_'
    ||LPAD (seq_id, 4,'0')||')"',
    'YES',
    '0',
    '- Select State -',
    'f3_' || LPAD (seq_id,4, '0'),
    NULL,
    'NO'
    ) STATE,
    apex_item.select_list_from_query_xl(4,c004,'select fips_place_name, port
    from valid_ports
    where fips_state = '
    ||nvl(c003,0)
    ||' order by fips_place_name',
    'style="width:150px;background-color:#FBEC5D;"',
    'YES',
    '0',
    '- Select PORT -',
    'f4_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO' ) PORT,
    apex_item.POPUP_FROM_LOV(5,c005,'VESSELS',
    NULL,NULL,NULL,NULL,NULL,
    'style="width:100px;'
    ||'background-color:#FBEC5D; "') vessel_id,
    apex_item.text(6,c006,10,null,
    'style="background-color:#FBEC5D;"'
    ||'onchange="f_set_start_date(this,f6_'
    ||LPAD(seq_id, 4,'0')||')"') trip_start_date,
    apex_item.text(7,c007,5,null,
    'style="background-color:#FBEC5D"') trip_start_time,
    apex_item.text(8,c008,10,null,
    'style="background-color:#FBEC5D"') trip_end_date,
    apex_item.text(9,c009,5,null,
    'style="background-color:#FBEC5D"') trip_end_time,
    apex_item.SELECT_LIST_FROM_LOV(10,c010,'TRIP_TYPE',
    'style="width:100px;background-color:#FBEC5D; "') trip_type,
    apex_item.SELECT_LIST_FROM_LOV(11,c011,'YES_NO',4) multiple_fishermen,
    apex_item.text(12,c012,3,null,
    'style="background-color:#FBEC5D"') days_at_sea,
    apex_item.text(13,c013,4,null,
    'style="background-color:#FBEC5D"') nbr_of_crew,
    apex_item.hidden(14,c014) supplier_trip_id,
    apex_item.hidden(15,c015) trip_nbr,
    apex_item.text(16,c016) partner_vtr
    from apex_collections where collection_name = 'TRIP_C'

  • ELM Add BP Master Data Fields

    Hi Gurus,
    How can I add business partner (BUT000) master data fields (including custom fields) to Mapping Format in ELM???
    Your prompt response will be highly appreciated and rewarde...
    Cheers,
    Peter J

    Hi Naveen,
    Both of your solutions were absolutely on point. It took little time as ABAPer was bit busy. Thank you very much for your assistance; you are rewarded with the max. Points...
    The following are the steps to import and create "Prospects" via ELM
    1. Prepare .csv file (keep stored on local machine)
    2. Activate Customizing Workflow (follow C22 building block)
    3. Use BADI - CRM_MKT_LIST to enhance the custom fields (via eewb) for filter criterion = Person. This BADI is filter dependent BADI (Mapping Format dependent)
    4. Implement SAP Note# 915015 for importing into "Prospect" business role
    5. Define List Type(s) and List Origin(s) in SPRO -> CRM -> MKT -> ELM
    6. Create Mapping Format - Web UI (log on as MKT_Prof or Power_User -> MKT -> Create: Mapping Format)
    7. Add Mapping Format to BADI: CRM_MKT_LIST - Attributes -> Define Filters -> Select you Mapping Format
    8. Create External List (Web UI (log on as MKT_Prof or Power_User -> MKT -> Create: External List)- use the Mapping Format
    Cheers,
    Peter J.

  • Date field - no date entered - conversion error

    Hi,
    i've a input text field with a datepattern attached in my jsp, whose requrired attribute is set to false. If i submit the page and no date is entered, JSF returns "Conversion error occured" for the date field.
    For testing purposes i made a simple JSP which contains only this date field and a reload button, which only submits the form. When the button is clicked the conversion error is displayed as described.
    What am i doing wrong here?
    thx
    brunft
    <html>
    <%@ page contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view locale="de">
    <html>
        <head><title>Date test</title></head>
        <body>
        <h:form id="datetest">
          <p> </p>
          <h:inputText id="someDate" styleClass="formText" value="#{testDate.someDate}">
            <f:convertDateTime pattern="#{testDate.datePattern}" />
          </h:inputText>
          <p> </p>
          <h:commandButton id="refresh" styleClass="formButton"
                  value="Reload"
                  action="#{testDate.actionReload}" />
          <p> </p>
          <p style="color:red;"><h:messages /></p>
        </h:form>
        </body>
    </html>
    </f:view>The bean:
    public class TestDate {
      private Date someDate;
      private static String datePattern = "dd.MM.yyyy";
      public TestDate() {
      public Date getSomeDate() {
        return this.someDate;
      public void setSomeDate(Date someDate) {
        this.someDate = someDate;
      public String getDatePattern() {
        return this.datePattern;
      public String actionReload() {
        return "success";
    }faces-config.xml:
      <managed-bean>
        <description>Date test.</description>
        <managed-bean-name>testDate</managed-bean-name>
        <managed-bean-class>test.TestDate</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>

    You can try by deleting "pattern=="#{testDate.datePattern}"
    <f:convertDateTime pattern="#{testDate.datePattern}" />

  • Workingdays with one date field

    Morning all,
    I have a report which uses only one date field. This report takes averages of lenses and jobs per day.
    The report works fine when it is running on daily basis however when it runs on monthly basis it messes up the averages.
    For example:
    Daily report:
    Job -1
    Lens - 1
    Average per day (job) -1
    Average per day (lens) - 1
    Month to date report
    Date Range: Month to date (01/08/2008 to 28/08/2008)
    Job - 6
    Lens - 438
    Average per day (Job)- 0.21 (where it should be 0.31)
    Average per day (lens)- 15.64 (where it should be 23.05)
    If you see above example, monthly should be taking Weekends and bank holidays in account.
    I have done similar thing but used two different date fields however here I am facing only one date field which is being used.
    So What I have done is, I modified the formula like this
    WhileReadingRecords;
    DateVar Array Holidays;
    DateVar Target:={lab_rework.rework_date};
    NumberVar Add:= -2;
    NumberVar Added := 0;
    WHILE Added > Add
    Do (target := target -1;
        if dayofweek (target) in 1 to 7 and not (target in holidays)
            then Added:=Added-1
            else Added:=Added);
    Target;
    I added this formula into my Report Selection formula like this
    ({@WeekdaysOnly} in MonthToDate)
    Oh and background of the report history:
    Crystal Reports: 2008
    Database: Informix
    Report: Record Selection formula ({lab_rework.rework_date} in MonthToDate);
    Report Group by: Report grouped by Reason Code
    Report Average formula:
    Whileprintingrecords;
    Numbervar FAvg;
    Numbervar myaverage=0;
    Numbervar CAvg=0;
    myaverage := {#Total Lenses}; 
    CAvg:= myaverage /Day(Maximum(MonthToDate));
    //({@EndDate}-{@StartDate}+1);
    FAvg:=FAvg + CAvg;
    CAvg
    Anyone who can help me using only one formula which I can use to take in account working days?
    The expected results aren't coming up correctly.
    Regards
    Jehanzeb

    Nope, no need for that.
    I sorted it out after editing my working days formula
    here is the solution I used
    WhileReadingRecords;
    Local DateVar Start := Date(Year(CurrentDate),Month(CurrentDate),1);// place your Starting Date here
    Local DateVar End :=   Currentdate;// place your Ending Date here
    Local NumberVar Weeks;
    Local NumberVar Days;
    Local Numbervar Hol;
    DateVar Array Holidays;
    Weeks:= (Truncate (End - dayofWeek(End) + 1 - (Start - dayofWeek(Start) + 1)) /7 ) * 5;
    Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
    (if DayOfWeek(Start) = 1 then -1 else 0)  +
    (if DayOfWeek(End) = 7 then -1 else 0); 
    Local NumberVar i;
    For i := 1 to Count (Holidays)
    do (if DayOfWeek ( Holidays<i> ) in 2 to 6 and
         Holidays<i> in start to end then Hol:=Hol+1 );
    Weeks + Days - Hol;
    //Holidays Code
    //Holiday Array Formula for the report Header:
    BeforeReadingRecords;
    DateVar Array Holidays := [
    Date (2003,12,25),   // you can put in as many lines for holidays as you want. 
    Date (2003,12,31),
    Date (2008,08,25)
    0
    Regards
    Jehanzeb

  • Is anyone else having problems with Apertures Date fields?

    After experiencing a sysems failure I began restoring my images from backups.  I have had no end of problems with Image dates.  I have come to the determination that Aperture is NOT using either the "Create Date" or "DateTimeOriginal" as the image "Date" or "Date Created" data if other fields have other dates.
    Here is a clip from my image metadata using exiftool:
    File Modification Date/Time     : 2012:09:23 19:53:15-04:00
    File Access Date/Time           : 2013:01:16 11:34:38-05:00
    File Inode Change Date/Time     : 2013:01:16 11:31:32-05:00
    Create Date                          : 2006:02:20 11:51:12.10
    Date/Time Original              : 2006:02:20 16:51:12.10
    Modify Date                          : 2006:02:20 11:51:12.10
    And here is what Aperture utilized on import
    Date:                               9/23/12 7:53:15 PM EDT
    Date Created                         9/23/2012 7:53:15 PM
    So Aperture utlized the File Modification Date/Time as the Create Date despite that the fact that the Create Date field is present and is properly formatted in the original image.
    According to the Aperture mapping table, this shouldn't be happening.
    Now, before someone recommends that I use Aperture's Date Adjust utility - I'm talking about  slightly over 30,000 images.  Editing images one at a time, or in blocks when you don't know what field Aperture is using as the Create Date would require individual inspection of each image followed by manual adjustment of each image.  That approach isn't acceptable.

    Hmm ok, let me restate the issue then, I thought I was clear.  I could have pointed out in my original post however, that only the EXIF and IPTC date fields were displayed from the metadata dump.
    The data set presented in my first post is the EXIF dataset from the file which clearly shows the image was captured by digital camera at
    Create Date                          : 2006:02:20 11:51:12.10
    Date/Time Original              : 2006:02:20 16:51:12.10
    (The delta of 5 hours is the result of Zulu versus local time offset)
    But, when I ingested it into Aperture, the import routine utilized the IPTC field
    File Modification Date/Time     : 2012:09:23 19:53:15-04:00
    which is updated by the OS whenever you move the file around outside of Aperture. (a number of image data fields are updated by the OS - filename for example is another.).  This resulted in the image date fields being stamped in Aperture as:
    Date:                               9/23/12 7:53:15 PM EDT
    Date Created                         9/23/2012 7:53:15 PM
    Which obviously came form the File Modification Date/Time field and not (either) the Create Date or Date/Time Original fields.

  • SSRS find max of converted date field

    Hi
    My SSAS source has a date field in this for mat dd/MM/yyyy which is stored as a string.
    In ym report when I find the MAx of this field it is doing it by the day rather than the date.
    I have tried the following but it doesn't seem to work it just errors on the report, how can I get this to work.
    Thanks
    =MIN(FORMAT(datevalue(Fields!DDMMYYYY.Value),"dd/MM/yyy"))
    when converting say 28/10/2013 it is saying the date is not valid so I think it is trying to do mm/dd/yyyy

    Hi aivoryuk,
    Based on your description that you have problem by using the expression "=MIN(FORMAT(datevalue(Fields!DDMMYYYY.Value),"dd/MM/yyyy"))" to convert the string date fields "dd/MM/yyyy" to date type  "dd/MM/yyyy" and
    get the minimum date ,right?
    I have tested on my local environment and can reproduce the issue, the issue can be caused by the CDate("dd/MM/yyyy") function is not invalid, the CDate() function not support the format "dd/MM/yyyy", but support this format "MM/dd/yyyy",
    so you can add an calculated fields which have the changed format date of "MM/dd/yyyy" first.
    Details information for your reference:
    Right click the DataSet(DataSet1) and select the "Add Calculated fields" to create the New fields:
    Name:NewDate
    Value:using this expression to get the "MM/dd/yyyy" formatted date:
    =split(Fields!DDMMYYYY.Value,"/")(1)&"/"& split(Fields!DDMMYYYY.Value,"/")(0)&"/"&split(Fields!DDMMYYYY.Value,"/")(2)
    Modify the current expression "=MIN(FORMAT(datevalue(Fields!DDMMYYYY.Value),"dd/MM/yyy"))"
    as below:
    =Format(MIN(CDate(Fields!NewDate.Value),"DataSet1"),"dd/MM/yyyy")
    OR you can using this expression:
    =Format(Min(DateValue(Fields!NewDate.Value),"DataSet1"),"dd/MM/yyyy")
    Note: this function Min() can add an scope as needed like Min(CDate(Fields!NewDate.Value),"Scope")
    Preview you will get the proper result:
    If your problem still exists, please feel free to ask.
    Regards
    Vicky Liu
    Thanks Vicky that worked a treat.
    What I also did was to bring into the cube the date field as a date (yyyy-mm-dd) format and then used and then used Vikash16 suggestion that also works.
    Nice to have a couple of solutions.
    Regards

  • Partiton by range date field

    I am creating a script that will automatically create the partitions. My partition key is a Date field
    I am testing changing date field uing Date, Timestamp and Timestamp with local time zone.
    How should my values less than clause look for Timestamp and
    Timestamp with local time zone?
    For example, testing for date looks like this:
    Partition 2005_JAN values less than (to_date('2005-02-01 00:00:00',SYYYY-MM-DD HH24:MI:SS') tablespace data01;

    Mike,
    if I understand your task right, you would like to have a script which would automatically create new partition for every new month/year.
    You can use something like that using EXECUTE IMMEDIATE and dynamic
    SQL to create new partition:
    SQL> create table t (date# date)
      2  partition by range(date#)
      3  (PARTITION DATES_AUG VALUES LESS THAN (TO_DATE('01-09-2005','DD-MM-YYYY')));
    Table created.
    SQL> select table_name, partition_name from user_tab_partitions
      2  where table_name = 'T';
    TABLE_NAME                     PARTITION_NAME
    T                              DATES_AUG
    SQL> declare
      2   cnt number(1);
      3  begin
      4 
      5   select count(1) into cnt from user_tab_partitions
      6   where table_name = 'T' and partition_name = 'DATES_' ||
      7   to_char(last_day(sysdate)+1,'MON');
      8 
      9   if cnt = 1 then return; end if;
    10 
    11   execute immediate 'ALTER TABLE t ADD PARTITION DATES_'
    12   || to_char(last_day(sysdate)+1,'MON') ||
    13   ' VALUES LESS THAN (TO_DATE(''' || to_char(last_day(sysdate)+1,'DD-MM-YYYY') || ''''
    14   || ',' || '''DD-MM-YYYY''))';
    15  end;
    16  /
    PL/SQL procedure successfully completed.
    SQL> select table_name, partition_name from user_tab_partitions
      2  where table_name = 'T';
    TABLE_NAME                     PARTITION_NAME
    T                              DATES_AUG
    T                              DATES_OCTTo be franky this is hardly relevant forum to ask this sort or questions, it would be better to ask it in SQL-PL/SQL or Database General ones.
    Rgds.

  • Localization the date field

    hi
    i want to change date field is there a way?

    Localisation can be controlled at system level or per-use.
    To set the system locale, use the System Properties application (there's no web applet) and choose the time zone. This sets all the locale displays including daylight savings. It can also be customised if desired.
    For users, they can override their personal locale from the "My Profile" page.
    For scripting purposes, try reading this: WebMonkeyMagic: Comparing Dates and Time Zones

Maybe you are looking for

  • Problems with Windows VISTA and WPA-2

    Hi Guys, I am using a Linksys router supporting draft-N; it seems that after some time of usage; Windows Vista stop being able to connect to Linksys using a WPA-2 PSK. Everytime you search for the SSID and attempt to connect, the ''network is taking

  • Monitoring Sound does one get a monitor for sound? Thanks.

    In iMovie 08, I have two inputs, iSight camera (old stand alone model) and a fw analog to digital input. I record, and I hear sound on play back, but not when I am recording. How Can I turn on the monitor sound? BTW, sound is not muted in the Project

  • Fn key please help???

    Apple of course had to place the Fn key where the ctrl button should be, this ***** for me as i have Windows XP using bootcamp on my MacBook Pro and i need to hit ctrl to crouch in games. It is in a hard spot to hit and I would like to switch the Fn

  • Certified digital signature

    Does anyone know how I can assign a digital signature to a PDF document, a word or pages document or an email message using Snow leopard? Thanks OF

  • The user profile service failed the logon. User profile cannot be loaded, WIN7 dual boot

    Hi all, I just got a new x201, which I installed ubuntu on a second partition. For a while the two systems were getting along fine, and I was able to switch between them without problems. on my last login it won't accept my credentials (pw or biometr