Problem in passing a date field to initilaize a VO query

Hi,
I am stuck with date issue
I am passing end date to a VO query as parameter.
this date is oracle.jbo.domain.date
public void initQuery(Number swapHeaderId, Date start_date, Date end_date)
setWhereClauseParam(0, end_date);
When i print this end_date I get 2011-08-15
In VO query I have mentioned
Select Srsf.Swap_Header_Id From Sfifin.Sfi_Rm_Swap_Fills Srsf ,Sfifin.Sfi_Rm_Swap_Header Srsh, Sfifin.Sfi_Rm_Offer_Lines Srol Where Srsf.Swap_Header_Id = Srsh.Swap_Header_Id
And Srol.Offer_Line_Id = Srsf.Offer_Line_Id And Srol.Offer_Header_Id = Srsf.Offer_Header_Id And Srsf.Swap_Header_Id = 124
And to_char(Srol.End_Date,'YYYY-MM-DD') > to_char(to_date(:1,'YYYY-MM-DD'),'YYYY-MM-DD')
Now when this Vo executes I get this error.
java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
I have tried all means but am unable to solve this issue.I have even tried to use
Srol.End_Date>to_date(:1,'YYYY-MM-DD') in where clause but still the same error when I am hardcoding this parameter its working fine .
Please help.

setWhereClauseParam(0, end_date);Change this to
setWhereClauseParam(0, end_date.toString());In VO query change
Srol.End_Date > TO_DATE((to_char(trunc(to_date(:1)),'DD-MON-YYYY') ),'DD-MON-YYYY')Hope it helps!!
Thanks
AJ

Similar Messages

  • Smartforms- TABLE -Lines,rgrding passing  Quan&DATS fields to smartforms

    Hi All ..
    Iam working on Tables in smartform ,
    These are  queries  to which  i need solution ..
    1)  In (Window) Table- Heading  i have created  3 LINES   in which  my  data  had  to display...( i have  a line   in that TEXT is used to display  a particular fields of the Itab ) .  as i came to know that  in my Zprog iam gettting my  data in the fields  but   wen  in smartform these fields values are not displayed ( when these fields are placed in LINE  )  but  wen  these fields are placed outof LINE that is outof table then iamgetting  value for these fields..  so please   let me know  wat are the changes that ishould do  to  get my  data  in  my table ( LINE )
    2) How  to pass  DATS and QUAN  fields  to the smartforms..
    as iam getting  data to DATS and Quan Fields in my  Zprog   but these  values are not showed in my  smartForm ..  ..
    Thanks in Advance..
    Looking  for  a good  reply ..
    Aslam..

    Hi,
    you have created 3 linetypes for table .
    you have create loop for multiple records display.
    in loop you have to pass table from which you are displaying inti output.
    To internal table we get data from print program and create text for corresponding cells.
    then it will pass those data to table.
    2) create programlines for that.
    in that mention table from which table is containing quantity.
    that is import parameter specified .
    export parameters are your output fields using for calculation.
    AMOUNT = TAB3-NETWR.
    Netamount = Netamount + TAB3-NETWR.
    here input is tab3 table it contains quantity data.
    lamount,netamount are output parameters.
    like that you can display quantity.
    or in global definitions currency/quantity fields tab is available you can pass there also.
    for dat fields write logic for conversion of date and pass that variabl in form output.

  • Problem in passing Modified date through Go url

    Hi All
    I am trying to pass parameters through url to report.
    Its working fine and passing row id of the record but when i try to pass modified date also, it takes me to no result view where i can see that value has been passed to report but the results are not filtered, instead no result view.
    While passing date in url as parameter do we have extra consideration?
    Anybody has faced smilar kind of scenario.

    I am getting the following error when trying to pass modified date for oppty.
    Error getting drill information: SELECT Opportunity.Name saw_0, Opportunity."Opportunity ID" saw_1, Opportunity."Sales Type" saw_2, Opportunity.Priority saw_3, Opportunity."Last Modified" saw_4 FROM "Opportunity Lists" WHERE (Opportunity."Opportunity ID" = 'AAPA-6EEC9X') AND (Opportunity."Last Modified" = timestamp '0000-00-00 00:00:00')
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-01 is out of range. (HY000)
    SQL Issued: {call NQSGetLevelDrillability('SELECT Opportunity.Name saw_0, Opportunity."Opportunity ID" saw_1, Opportunity."Sales Type" saw_2, Opportunity.Priority saw_3, Opportunity."Last Modified" saw_4 FROM "Opportunity Lists" WHERE (Opportunity."Opportunity ID" = ''AAPA-6EEC9X'') AND (Opportunity."Last Modified" = timestamp ''0000-00-00 00:00:00'')')                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem in output for date field

    Hi experts...
    i have one requirement like if string is initial i need to display blank for date field in  out put...
    but it is showing 00.00.0000..
    My code is...
    data: V_TEMP TYPE sy-datum,
          V_TEMP1 TYPE sy-datum,
          v_str type string,
          v_str1 type string.
      v_str1 = '2008091123457'.
      v_str = '0'.
      REPLACE ALL OCCURRENCES OF ',' IN v_str WITH SPACE.
      CONDENSE v_str NO-GAPS.
      v_TEMP1 = v_str1+0(8).
      if v_str <> 0.
    v_TEMP = v_str+0(8).
      else.
    v_temp = ''.
       endif.
         write:/ v_temp1 ,V_TEMP.
    output is: 11.09.2008   00.00.0000(BUt i want space here just blank...)
    can any body plz help me.....

    Hi,
    You can use something like that:
    WRITE: date NO-ZERO.
    Best regards.

  • Problem in passing xstring data from abap to webservice method.

    Hi,
    I want to upload the document from ABAP to Microsoft SharePoint. So for that i have created the webservice in .net for uploading the document in SharePoint.
    Now in Abap i have consumed this service by creating proxy class. The web service has one method as Upload_File which takes byte[] as paramerter, so in wsdl file this parameter get converted into s:base64Binary and in abap it get converted into RAWSTRING.
    Now, when i try to upload the file with very small content (less than 54 character mean the rawstring variable which contain the file content has length less than 108 ), file gets uploaded with no problem, but when the file has content more than 54 character, it give error like "SOAP:1.032 SRT: Wrong Content-Type and empty HTTP-Body received"
    And also one thing when i have created the proxy class it gives warning that "The XSD type base64Binary does not exactly correspond to the ABAP type RAWSTRING"
    What can be the problem? how to pass file content to external web service?
    Thanks,
    Vikram

    Hi Nick,
    Yes, when i declare the data type as string in XSD it get converted into xsd:string.
    I have already tried using String as parameter in WebService method instead of byte[].
    But then in .Net, I need to write some code for converting the string variable ( which content the file content in hexadecimal format) into byte array and for that there is a method provided by .Net framework but when I use it, it write the hexadecimal content in file.
    So I have written my own code for converting hexadecimal content which string variable content to byte array.
    By doing this, it working fine and all type of file getting uploaded in SharePoint but when I try to open the file only .TXT file get open properly and other type of file give me some error.

  • Problem while saving date field in custom table

    Hi,
    Iam facing the following problem while saving a date field in custome table
    i have a date field zdate in which the value is 02082010.
    now when i try to insert this value in the custom table it is getting updated as 20/10/0208 , but it should be 08/02/2010
    How can i correct it..
    Regards
    Kumar

    just before saving u might have to use a string reverse FM and then save it..
    CALL FUNCTION 'STRING_REVERSE'
      EXPORTING
        STRING          = p_string
        LANG            = sy-langu
    IMPORTING
       RSTRING          = r_string
    EXCEPTIONS
       TOO_SMALL        = 1
       OTHERS           = 2

  • Bizare date field behavior in an Oracle database.

    I have this bizare data problem quering an oracle date field.
    Look at these two result sets.
    Missing Two records.:
    COUNTY_CD
    CONAME
    FILE_DATE
    TRANSMISSIONS
    RECORDS
    NO_ERROR_RECORDS
    ERROR_RECORDS
    TOTAL_ERRORS
    03   
    AMADOR                    
    07-NOV-11            
    10                
    405               
    396               
    9                 
    9                 
    10   
    FRESNO                    
    07-NOV-11            
    1                 
    204               
    200               
    4                 
    4                 
    16   
    KINGS                     
    07-NOV-11            
    3                 
    1296              
    1110              
    186               
    194               
    20   
    MADERA                    
    07-NOV-11            
    1                 
    552               
    535               
    17                
    17                
    51   
    SUTTER                    
    07-NOV-11            
    1                 
    43                
    5                 
    38                
    38                
    WHERE
            r.file_date BETWEEN TO_DATE('2011-11-07 00:00:00','YYYY-MM-DD HH24:MI:SS')
                            AND TO_DATE('2011-11-07 15:00:00','YYYY-MM-DD HH24:MI:SS')
    All Expected records
    COUNTY_CD
    CONAME
    FILE_DATE
    TRANSMISSIONS
    RECORDS
    NO_ERROR_RECORDS
    ERROR_RECORDS
    TOTAL_RECORDS
    03   
    AMADOR                    
    07-NOV-11            
    10                
    405               
    396               
    9                 
    9                 
    10   
    FRESNO                    
    07-NOV-11            
    1                 
    204               
    200               
    4                 
    4                 
    16   
    KINGS                     
    07-NOV-11            
    3                 
    1296              
    1110              
    186               
    194               
    20   
    MADERA                    
    07-NOV-11            
    1                 
    552               
    535               
    17                
    17                
    50   
    STANISLAUS                
    07-NOV-11            
    2                 
    17002             
    7165              
    9837              
    10028             
    51   
    SUTTER                    
    07-NOV-11            
    1                 
    43                
    5                 
    38                
    38                
    WHERE
            r.file_date BETWEEN TO_DATE('2011-11-07 00:00:00','YYYY-MM-DD HH24:MI:SS')
                            AND TO_DATE('2011-11-07 15:59:59','YYYY-MM-DD HH24:MI:SS')
    Can anybody tell me why looking for recrods by the FILE_DATE field that has no time portion, it is a 'DATE' data type field, would produce different results based on different time parameters passed into the WHERE clause?  This has me really confused and I just can not figure out why this behavior changes which makes me leary to trust a work around solution of just apending random time data to the where clause.
    Below it the entire SQL query from the origanal source.
    SELECT
    r.county_cd,
    c.coname,
    COUNT(unique r.file_name) AS transmissions,
    count(r.use_no) AS records,
    count(r.use_no) - count(e.use_no) AS no_error_records,
    count(e.use_no) AS error_records,
    sum(e.errors) AS total_errors
    FROM
    raw_pur r INNER JOIN
    pur_lookup l
    ON (r.use_no = l.use_no AND r.year = l.seq_year) LEFT OUTER JOIN
    SELECT
    year,
    use_no,
    count(use_no) AS errors
    FROM
    errors
    WHERE
    NOT (error_code = 17 OR error_code = 20 OR error_code = 72 OR error_code = 52 OR
    (error_code = 12 AND error_type = 'POSSIBLE') OR
    (error_code = 69 AND error_type = 'POSSIBLE') OR
    (error_code = 37 AND error_type = 'POSSIBLE') OR
    (error_code = 39 AND error_type = 'POSSIBLE'))
    GROUP BY
    year,
    use_no
    ) e ON (r.year = e.year AND r.use_no = e.use_no) INNER JOIN
    county c
    ON (r.county_cd = c.county_cd)
    WHERE
    r.file_date BETWEEN <cfqueryparam value="#form.fromDate#" cfsqltype="cf_sql_date">
    AND <cfqueryparam value="#form.toDate#" cfsqltype="cf_sql_date">
    GROUP BY
    r.county_cd,
    c.coname
    ORDER BY
    r.county_cd

    Thanks guys.  The errant records in question do indeed have time portions to the values in the FILE_DATE field, though they are not supposed to and all the other records do not.
    Thanks for the suggestion to use the to_char function to suss out the actual, full values. 
    It is always so useful to have helpful IDEs (Oracle SQL Developer in my case) that hide information from you.  I was using this to look at the field expecting to find time data, but was not seeing it.  I guess SQL developer is formatting the date-time value for me since this is a date field.  How helpful in a debugging situation.
    Now to figure out why these records are in the database in this way in the first place.  Because they are not supposed to be.
    Again, thanks for the help.
    Ian

  • CR XI uses the wrong data field after save/close-open

    I have a quite complex CR XI report (35 sections).  It has 2 embedded sub-reports, connects via ODBC to Sybase, and uses a long and complex SQL statement as a Database Command.  After a fairly small number of edits and saves (I guess between 10 and 20), I can no longer save it correctly.  For example, if I add a particular text field from the command to be displayed.  Run the report in the designer then all is well.  But if I save the report and re-open it then the data field that I added has been replaced by another, totally different field.  This process is repeatable!
    I tried removing some unneeded fields from the Command SQL and that causes a DIFFERENT field to replace the one I select.
    If I re-create the entire report from scratch (copy and paste from the u201Cbadu201D one) then the problem goes away for a few edits and saves; but then returns.
    This is getting very frustrating, because it takes me the best part of a day to copy the report to a new one, including copying all of the formatting and formulae, and ensuring that every field and every section has the correct properties (suppress, new page etc) applied to it.  In order to minimise the risk of it becoming corrupt I u201Csaveu201D infrequently, which can add to the frustration when things go wrong!
    Has anyone got ANY ideas? 
    What can I do to prevent the corruptions?
    Is there a better way to clone the report?
    Does anyone know if CR 2008 would be any better?

    Don,
    Thanks again for your help.  I think that you are misunderstanding the problem a bit.  When I have the report open in the designer I can put the correct field on the designer surface (eg by dragging a field called u201CCustomerNameu201D from the Command in the u201CField Exploreru201D to an appropriate location).  The report then functions perfectly when I refresh (F5) and view it in the u201CPreviewu201D tab, and I see the appropriate names.  However If I close the designer and then re-open it, a DIFFERENT field, u201CCustomerBalanceu201D, is displayed both in the design view and the preview tab, and of course I see the numeric data for that incorrect field in the preview, where I expect to see a name.  The same (incorrect) data is shown when the report is run and displayed via the web browser interface (not within the CR designer).
    I have run and edited the same report on different PCs with the latest CR XI installed and on my PC with many different loads (eg just after re-boot and later in the day with many applications running) all with identical results, so I am confident that it is not resource related.
    Similarly I donu2019t think it can be ODBC related, because it appears to occur when the report is saved, closed or opened.  I am not saving data with the report.  I have now tried using the DataDirect driver, but it will not connect to the Sybase ASA database on a remote server, because it complains that procedure sp_server_info is not found.  This is only supported by Sybase ASE (not ASA).
    There are a lot of conditional fields and sections and page breaks  within the report, these are suppressed with an appropriate formula, but the underlying SQL is just passed one parameter and this is used to select an appropriate single data set (there is no hierarchical grouping or drill-down in this report).  The error is there consistently whatever parameter value is used (i.e. it always displays a value in place of a name in the example above).
    I have still not tried your stored procedure idea, partly because that will require another day to re-write the report.  I might combine that with Jasonu2019s idea and make all display all data via formulae as a first step and then replace the underlying data with a stored procedure.
    I have discovered a temporary work-around though.  I have added more sub-reports (all take the same parameter value) and replaced whole sections with those sub reports, so I was able to remove quite a few data fields from the main SQL query, because these are now queried separately in the sub-reports.  Itu2019s all working at the moment!
         Jonathan

  • Add Days to a Date field

    Hi all,
    I have the following requirement:
    I have a date field 0calday and the user would like to add a specific no.of days to it, like for example 10 or 15 days. Then we use this computed date field in calculations in the query. Could you please help and let me know how we can no.of days to a date field? And also how we can compute no.of days between two date fields?
    Regards,
    Ashmith Roy

    Hi Ashmith,
        When the user enters both date and no. of days, and if you want to calculate no of days from the user entered date I think you can go for an exit where you can use the available function module which calculates the no of days from starting of the month for the given date. Then you can add up the days entered by the user and use another available function module which converts it to the dat format again based on the given days and the old date. I don't remember the function module names but i am sur ethey are available.
    If the above thing is made possible then I think getting no of days between two dates is not a problem. Well i hope this will help you.

  • Additional Date fields in Address Book Contacts

    I am trying to add *new date fields* to my contacts and Address Book Help says this can be done either at the form level or at the contact level by selecting a *"Date" field to add from the fields categories*.
    Problem : I have no "Date" field to add.
    *Anyone knows how to make this category (re)appear or, perhaps, a workaround ?*
    TIA

    Nice work! I didn't suspect you'd know how to edit prefs...
    Just goes to show, you never know a person's skill levels here
    -mj

  • Issue with a date field

    Hi,
    I have a pl/sql page that is the output of a select statement with some conditions.
    One of the condition is like:
    AND MyColumn between (:P1_MyDateItem - 7 , :P1_MyDateItem)
    but as soon as I include an addition or substraction (:P1_datefield - 7) , I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    How can I resolve that error?
    Also,
    I am trying to pass the date field to a second page in a hidden field. In a similar scenario as the one described above, how can I manipulate the date using the hidden field. ie. in my testing, I think it kind of converts the "date" into "char' format?? can I also do the same manipulation "Date-7" but this time using a hidden field instead?
    Thanks

    FabioBui wrote:
    but as soon as I include an addition or substraction (:P1_datefield - 7) , I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    How can I resolve that error?Try converting it to a date first
    to_date(:P1_datefield, <date_format>)-7
    I am trying to pass the date field to a second page in a hidden field. In a similar scenario as the one described above, how can I manipulate the date using the hidden field. ie. in my testing, I think it kind of converts the "date" into "char' format?? can I also do the same manipulation "Date-7" but this time using a hidden field instead? Yes, if that's what you want to do. A date field is just a text box, made nicer with the jQuery Date Picker.
    so date picker:
    <input type="text" value="12/14/2011" />
    to a hidden item
    <input type="hidden" value="12/14/2011" />
    only difference being the display type.
    Just remember to convert it to a date in your pl/sql code.

  • Transfering Date field into UNIX server

    Hi,
    I transferring date field to UNIX server from SAP which later read by MAINFRAME system from UNIX server.I would like to transfer the date field with length 5 into Unix server.I tried to transfer using PACK, but packed date is not readable to validate the unix file.Can anybody help me out on this.
    Thanks in Advance,
    Kilaru

    hi,
      For writing the fields into Unix file, they have to character fields.
      to pass a date field, try like this.
    data: v_date(10) type c.
      concatenate sy-datum6(2) sy-datum4(2) sy-datum+0(4) into  v_date separated by '/'.
      now send v_date to unix file.
    Regards,
    Sailaja.

  • How to limit date fields between 2 values

    Hi I have two date fields and I can use min and max to limit them between two values. But what I wanna do is make it so that the user can only insert values before June 30th each year. So if a value is over that it gives an error. Right now I can do it but would have to change the year each year because I specify it as
    Min june 30th 2011
    Max june 30th 2012
    I want this but so I don't have to change it to 2013 in a year.
    Thanks and best regards

    The validator should only allow dates in the range between June 30th this year and July 1st of next year. But with next year defined as current year + 1 year, not as a straight number which would have to be changed every year.
    Does this make sense?
    Here is a little background I have a vacations table and in it fields user, start, end, and ID. Now Start and End are the date fields. I have this query which gives a number of vacation days a user has spent excluding saturday and sunday. Now the problem in this query is that when the user inserts his vacation dates he can insert them for 10 years from now which messes with the query. So I was thinking if there was a way to limit the user to only be able to insert dates for the given business year which in my company (for some reason) goes from July 1st. That is the cut off date.
    In other words in my company you have to use your vacation days by july 1st. Then you get the vacation days for next year which you can again use, until July 1st of next year. If you haven't used last year's vacation days by then you lose them. I just want to somehow incorporate this into the application.
    Here is the sql query (and props to user Pollywog)
    WITH t AS (  SELECT id,
                        MAX (strt) strt,
                        MAX (finish) finish,
                        SUM (dys) days_off
                   FROM (SELECT id,
                                strt,
                                finish,
                                CASE
                                   WHEN TO_CHAR (dy, 'day') LIKE 'saturday%' THEN 0
                                   WHEN TO_CHAR (dy, 'day') LIKE 'sunday%' THEN 0
                                   ELSE 1
                                END
                                   dys
                           FROM vacations
                         MODEL
                            PARTITION BY (ID id)
                            DIMENSION BY (0 d)
                            MEASURES (POCETAK strt, KRAJ finish, POCETAK dy)
                            RULES
                               (dy [FOR d FROM 1 TO finish[0] - strt[0] INCREMENT 1] =
                                     (NVL (dy[CV () - 1], dy[CV ()]) + 1)))
               GROUP BY id
               ORDER BY id)
    SELECT t.id,
           t.strt,
           t.finish,
           t.days_off,
           vacations.korisnik,
           SUM (
              CASE
                 WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
                 ELSE 0
              END)
           OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
              this_years_running_total,
           SUM (
              CASE
                 WHEN finish < TO_DATE ('01/07/2011', 'dd/mm/yyyy') THEN days_off
                 ELSE 0
              END)
           OVER (PARTITION BY vacations.korisnik)
              this_years_grand_total,
           SUM (
              CASE
                 WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
                 THEN
                    days_off
                 ELSE
                    0
              END)
           OVER (PARTITION BY vacations.korisnik ORDER BY t.id)
              next_years_running_total,
           SUM (
              CASE
                 WHEN finish >= TO_DATE ('01/07/2011', 'dd/mm/yyyy')
                 THEN
                    days_off
                 ELSE
                    0
              END)
           OVER (PARTITION BY vacations.korisnik)
              next_years_grand_total
      FROM t, vacations
    WHERE t.id = vacations.idEdited by: Dino2dy on Jun 6, 2011 5:44 AM

  • Determine Date field format dynamically

    Hello friends,
    I'm writing some database access code in java. The biggest problem I face is date fields. Because I don't know the date field format (For example, in SQL Sever we can have dd/mm/yy or mm/dd/yy, etc), I can't format dates for insert/update statements.
    Is there a way to determine the date field format dynamically? Regardless of database, for ex. MS SQL, Oracle?
    Thank you.

    Hey!
    There is a way to do this! The Oracle Database understands SQL92 Syntax. So you can use
    - {d ?yyyy-mm-dd?} for date representation,
    - {t ?hh:mm:ss?} for time representation,
    - {ts ?yyyy-mm-dd hh:mm:ss.f...?} for timestamp rep.
    Here is a small example:
    // Connect to the database
    // You can put a database name after the @ sign in the connection URL.
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@", "scott", "tiger");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    // Select the ename column from the emp table where the hiredate is Jan-23-1982
    ResultSet rset = stmt.executeQuery
    ("SELECT ename FROM emp WHERE hiredate = {d ?1982-01-23?}");
    // Iterate through the result and print the employee names
    while (rset.next ())
    System.out.println (rset.getString (1));I hope this is what you wanted to know!

  • Help with Date Field properties

    I have a problem setting properties for date field. I want date in mm/dd/yy format, that i am able to but I want something like this. When someone enters date as just numbers like 080708, it should automatically make it as 08/07/08.
    I tried doing some setting but couldn't find any help appreciated.
    thanks

    You will need to adjust the validation patterns in the Value tab on the object palette. There are four patterns that you can play with (Display, Edit, Validation and Data). Each pattern will affect the field data at different times. To get access to the patterns click on the Validation Pattern...button. A new dialog will open up with the 4 patterns available to you. The display pattern is how the data will be shown on screen. The edit pattern is how the user will enter the data, the Validation pattern is how the field will be validated and the Data pattern is how the data will appear in the saved XML.
    In your case you will want to set a disply pattern of DD/MM/YY and an edit pattern of DDMMYY. This will allow the user to enter 080708 or 08/07/08 and it will display 08/07/08 all of the time.
    Hope that helps

Maybe you are looking for