Best date format

Hi all, this message is related to a previous one that I 've posted.
I wonder what is the best date format to use when converting from VARCHAR2 to DATE.
The VARCHAR can be for example
1, (01/01/01), or
2. (01/01/2001)
The currently format used (I want to point that is used for commercial purposes) is 'DD/MM/YYYY HH:MI:SS'.
With the aforementioned format after testing I came to the following results;
For the first case produces error date (01/01/0001) whilst with the second works fine.
If I use a format like 'DD/MM/YY' then date is succesfully converted, but could this produce any other unexpected results?
Please make your suggestions.
With regards
Vassilis

The correct format for the decode is 'MM/DD/RRRR', see the following examples where I convert a string to a date and then reconvert it to character for display.
1* select to_char(to_date('01/20/05','mm/dd/rrrr'),'mm/dd/yyyy') from dual
SQL> /
TO_CHAR(TO
01/20/2005
SQL> edit
Wrote file afiedt.buf
1* select to_char(to_date('01/20/2005','mm/dd/rrrr'),'mm/dd/yyyy') from dual
SQL> /
TO_CHAR(TO
01/20/2005

Similar Messages

  • Best video format to export from final cut pro to encore

    hi, i'm using final cut pro and no matter what format i export my video in, be it quicktime, mpeg2 or avi, there's still a slight degradation of picture quality when i import it into encore. mpeg2 by far suffers the least. but is there a best video format i can export from final cut to adobe so dat there's minimal loss in quality?

    Sure, export it as an uncompressed AVI or QT file.

  • OLE Automation , date formatting

    Hi everybody,
    i have a problem with OLE automation for "date" formatting.
    The cell value is correct ( DD/MM/YYYY) , but in some cases the cell option is "Date" ( this is the correct option ) and in other cases the cell option is "General". This last option is wrong because the value is left-justified, meanwhile the "Date" option is right-justified.
    I wish to have the "Date" cell option always. (right-justified)
    Is it possible to set this option with statement "SET PROPERTY OF..." ?
    Thanks in advance.
    Best regards.
    Dario.

    Hi,
    you can use this:
      SET PROPERTY OF H_CELL 'NumberFormat' =
                             'dd\/mm\/yyyy'.
      SET PROPERTY OF H_CELL 'Value'        = '01/01/2012'.
    Regards, Dieter

  • SSAS Cube parameter date format change

    Hi Experts,
    I am new to SSRS report creation. I have a parameter which is fetching date from cube. The date format from cube is YYYY-MM-DD.
    I want expression to change the date format to DD/MM/YYYY.
    I have used this expression - =Format(CDATE(Parameters!DimPromoUBUBStartDate.Value),"dd/MM/yyyy")
    but it is not working and getting the following error,
    "unable to cast object of type 'System.object[]' to type 'system Iconvertible'
    Please give your suggestions
    Thanks in Advance,
    Rajan

    Hi Rajan,
    According to your description, when you convert the "YYYY-MM-DD" formatted data from the parameter and change the format, it throw the error above. Right?
    In this scenario, the reason why you get this error because you set allow multiple values in that parameter. When we allow multiple values in a parameter, all select values will be put into a array when processing even you only select one value. And
    the CDate() function can't convert the object[]. So please unselect the allow multiple values in parameter. If you want to keep multiple values selection, you can only convert one element from the array. For example: CDate(Parameter!XXXX.Value(0))
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Date format in OBIEE 10g Calender Control

    Once date selected in Calender, it is taking Date-Time format automatically.
    i.e when we select 20/01/2013 in calender and select GO button, then it takes '20/01/2013 00:00:00'. How can we change from Date-Time format to Date format only.
    Best regards,

    Check this
    http://108obiee.blogspot.com/2009/03/how-to-change-date-format-mask-in-date.html
    Btw: Is that causing on report data?
    Mark as correct
    Edited by: Srini VEERAVALLI on Apr 25, 2013 7:02 AM

  • Error while parsing date format

    Hi Friends
    I am using db2 as backend for my project and currently facing an issue with the parsing of the date.
    The date being returned from the db is in the format - yyyy-MM-dd-HH.mm.ss.SSS000 and the return type is String.
    when i try to parse and convert it into a date object. i get the following error
    java.text.ParseException: Unparseable date: "2011-05-30-20.23.25.319000"
    the code to format is as below
    String dateTime = "2011-05-30-20.23.25.319000";
    java.text.SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss.SSS000");
    Date date =format.parse(dateTime);
    please provide your comments as to what i am doing wrong here.and if possible let me know the solution.
    Best Regards
    Vikeng

    Use this instead:
    java.text.SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss.SSS");

  • Email Submit and Data format

    I have been reviewing the following document and have 1 question.
    http://www.adobe.com/devnet/livecycle/articles/lc_understanding_submit_tip.pdf
    Is there a way to customize the data format using a submit button?
    I may have the requirement to have end users submit data through an email submit button, but the client wants the data in the format Fieldname [delimiter of some sort] Fieldvalue, is this possible?  Would you need to manually edit the xml in the form to do this? Any pointers would be appreciated.
    The only options I see in the attributes of the email submit button are:
    XDP
    XML
    PDF
    URL encoded data
    Thank you,

    Hi Paul:
    Currently we are using Acroforms and would use these forms originally.
    In the future, this would be used with LiveCycle so it would probably be an XFA/LiveCycle Designer form. I believe in this case, the best solution would be to do this through a submit using Form Server components of LCES.
    Thank you,
    Working for a Living...

  • Oracle to SAP BI with BCS u2013 Best Data flow Design.

    Hi,
      We are a SAP implementation team. We are @ Blue Print stage. My client is a RETAIL Business Gaint. Client has 50 % of Transaction data and Master data in Oracle data base. Now we are moving to BI 7.0 and also has plans to use SAP-BCS.
      We would like to map all the existing Oracle tables to BI. Provide any clue regarding the best Data flow (From Oracle 10G to BI 7.0).
    Your quick and valuable suggestion/ links are highly appreciated.
    Warm Regards,
    Bab

    Hi Ashok,
    You have mentioned that you have a Oracle 10g  system as a data inflow which perfectly sets the platform to extract the data from the Oracle  system to SAP BW system.
    This Can be done through the DB connect ,through where you could select the necessary tables and form them as a datasource in BI system,further creating the usual BI objects on top of the DS.
    Once the Data is in BI ,we could pull the BI cube or form a replica of the cube in BCS application format to use it in the BCS environment.
    Hope this helps,
    Regards,
    Rajesh.

  • I have Problem in Upload Date formate

    Hi Friends,
    I have one doubt on WDJ.
    I have done one Application that application having one functionality that is Download data in to Excel. After download data into excel we can change the DATE cell and again upload Excel Data.
    Here what I am getting problem is  download data into SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); this date forame. And again upload data  into Same date formate
    But it is not uploaded
    When I download data into SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); this date format that time it will upload successfully.
    This is for Dowload data into Excel
    if(StockEle.getConf_Shp_Date()==null)
    ExcelEle.setConf_Shp_Date("null");
    else
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    Date ConfShpDate = wdContext.nodePoDetails_OutTab().getPoDetails_OutTabElementAt(i).getConf_Shp_Date();     
    String ConfShpDate1 = sdf.format(ConfShpDate); // will give dd-MM-yyyy
    ExcelEle.setConf_Shp_Date(ConfShpDate1);
    Here ExcelEle.setConf_Shp_Date data type is String
    This is for Upload data
    try
    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    //Date dt = sdf.parse(ele.getConf_Shp_Date());
    // java.util.Date Date dt = sdf.parse(ele.getConf_Shp_Date());                                   
    java.util.Date dt = sdf.parse(ele.getConf_Shp_Date());
    java.sql.Date sqlDate = new java.sql.Date(dt.getTime());                                   
    eleout.setEindt(sqlDate);
    catch(Exception e)
    e.printStackTrace();
    eleout.setEindt data type is Date.
    How to Solve this issue I want upload this type of date (dd.MM.yyyy).
    Regards
    Vijay Kalluri

    Hi
    Try to format it before sending it back , try using these code
    // Create Date object.  Date date = new Date(); 
    //Specify the desired date format
    String DATE_FORMAT = "MM/dd/yyyy";
    //Create object of SimpleDateFormat and pass the desired date format.
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT); 
    /*  Use format method of SimpleDateFormat class to format the date.  */
    System.out.println("Today is " + sdf.format(date) );
    Best Regards
    Satish Kumar

  • What is best movie format for iBooks Author

    What is the best movie format for iBooks Author?

    Thanks for the people who helped my. Thanks to you I now have the answer.  It is as follows:
    1. Load your movie into Quick Time Player.
    2. When in Quick Time Player go to File then Export to then check Broadband H.264, 5Mbp/s maximum data rate.
    This worked for me so many thanks.

  • Acrobat standard Date formate

    Hi Guys,
    I am trying to add in a date stamp to the footer of a PDF.
    the problem I am having is that the date format DD/MMM/YYY is not
    available. Is there any way I can get this format into the footer?
    thanks

    Hello,
    I'm sorry I'm not able to address your question. These forums
    are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat User Forums:
    Link to
    Acrobat Forums
    Thanks!
    Michelle

  • Invalid date format for 'Created' field in the getVersions web service Response.

    Hi all,
    I am trying to get all versions for selected document by calling getVersions method Versions.asmxweb service, but getting ‘Created’ date attribute value is in the format "29-05-2012 12:01"
    but I am expecting either one of the following date formats.
     1.      yyyy-MM-dd HH:mm:ss  or  yyyy-MM-ddTHH:mm:ssz
     2.      MM/dd/yyyy HH:mm a   (a means AM/PM)
     3.      MM/dd/yyyy
     4.      yyyyMMdd HH:mm:ss
    where do I need to change?
    what are all the formate will be support by SharePoint?
    please find attached response xml of getVersions call.
    <results xmlns="http://schemas.microsoft.com/sharepoint/soap/">
        <list id="{6A6F6CD1-2E9C-44CC-B1F5-56G7JB5C8778}"/>
        <versioning enabled="1"/>
        <settings url="http://hbngjfgj47s20/reg/_layouts/LstSetng.aspx?List={7S6F6CD1-2E9C-44CC-B1F5-KO9J8Y7Y6H78}"/>
        <result version="@0.3" url="http://vmesxsrv47s20/register/Shared Documents/Parent/child/my_doc" created="29-05-2012 12:01" createdRaw="2014-12-02T12:46:02Z" createdBy="my_dom\agi_sharepoint"
    createdByName="AGI_Sharepoint" size="288" comments=""/>
        <result version="0.1" url="http://hbngjfgj47s20/register/_vti_history/1/Shared Documents/Parent/child/my_doc" created="29-05-2012 10:01" createdRaw="2014-12-02T10:55:18Z" createdBy="my_dom\my_sharepoint"
    createdByName="my_sharepoint" size="288" comments=""/>
        <result version="0.2" url="http://hbngjfgj47s20/register/_vti_history/2/Shared Documents/Parent/child/my_doc.txt" created="29-05-2012 11:01" createdRaw="2014-12-02T10:59:25Z" createdBy="my_dom\my_sharepoint"
    createdByName="my_sharepoint" size="288" comments=""/>
    </results>
    Kindly help me on this.

    Hi,
    According to your post, my understanding is that you want to change date format for ‘Created’ field in the getVersions web service.
    Per my knowledge, you can get the date format for ‘Created’ field as “MM/dd/yyyy HH:mm a”.
    For more information, you can refer to:
    Versions.GetVersions Method (Versions)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Saving rights and date format in Forms - Acrobat Professional 8

    Hi Forum,
    I have designed a form for a client in Acrobat 8 Professional, and enabled viewing rights in Reader. There will be a lot of people using this form that are not in any way computer literate, and the client has requested that I do the following:
    1. I have set up the date format (in a date-of-birth field) to dd/mm/yy, limited to 8 characters, and a Tool-tip explaining how the date must be written. However, if you enter the date by mistake as 01/01/2001, it will be allowed, and appear as 01/01/20 (instead of coming up with an error message saying the 20 is wrong and it should be 01). I understand that to the form, there's nothing wrong with this date, but is there any way I can get a pop-up box to appear if either '19' or '20' appears as the year, and indicate to the form-filler that they should check what they've entered?
    2. They want the user, when the document is opened in Reader, to NOT be allowed the 'Save' feature, but only allow them to 'Save AS', so as not to overwrite the master document, which will be stored in a folder. The information in these forms are of a sensitive nature, so they don't want it getting saved by accident into the master document for anyone to see.
    I would be delighted if you were able to give me any ideas on the above.
    Kind regards,
    Liz

    For #1, you can, but it would involve some custom JavaScript programming to replace what Acrobat uses as the Keystroke/Format scripts.
    For #2, you cannot set up the document or Acrobat (Reader) to prevent a Save but allow a Save As. The best way to do what you want is to set up the appropriate file permissions using the OS's file system to prevent users from changing the file. A quick & dirty way is to simply set the file to read-only, but this is often easy for a user to undo.
    George

  • Different Date Formats on CRM and BI Client

    Hi,
    When trying to run the CRM Interactive Report "Accounts with Open Activities", I receive the following error:
    Different date formats on CRM and BI client 01/13/2009 13.01.2009 SC5CLNT200
    Does anybody know how to resolve this error?
    Thanks

    Hi Peter,
    As far as i remember, I had the same issue.
    Once I matched the date format in reporting client using SU01 on default tab with CRM date format, I did't see the error again.
    Did you try restarting the Browser & also relogin GUI.
    Else lets see what else can be done.
    Best Regards
    Shiven

  • Date format convert error in XML interface based Adobe interactive forms

    Hi experts,
    I am using XML interface based Adobe interactive form in Web Dynpro ABAP. The form just contains some date fields and numeric fields.
    When I test the WD Application, the date fields appear like 0000-00-00 at the first time. And then I set the form input disable, and get the XML from the form, at the same time I get the warning message, 'date format convert error'. By the way, I have set the edit pattern, display pattern and data pattern  of the date field to YYYYMMDD, but there seems no effect.
    Could you tell me how to set the default date format in date field Or clear the 0000-00-00?
    And another question, all of the numeric fields in the form appear like 0.0, how can I set it to empty when the form initialize?
    Best Regards,
    Guo Guo Qing

    Hi Chintan,
    Thank you for your reply.
    I have tried every possible changes on the Date field, locale, pattern. But still no effect. When the PDF come up in the WDA program, the date field is still '0000-00-00', and then I export the XML date of the form, there is also '0000-00-00' in the interface field.
    I can't clear the '0000-00-00' in initializiation event using javascript because if I need to open the form again, if I do this, the value user input could be cleared.
    I also try using Javascrip like this
    if this.rawValue == "0000-00-00"
    { this.rawValue = ""; }
    The code above can't clear the initializiation zeros too.
    Have you used the XML interface based online Adobe Forms? I have used XML PDF forms for output before, that's perfect. But the input forms seems so strange.
    Best Regards,
    Guo Guo Qing

Maybe you are looking for

  • How do I connect my Imac OSX 10.9.4 to my HP Laserjet IIIP printer ??

    Hello, I own a very old HP Laserjet IIIP printer which is still very good and I would like to install it on my Imac OSX 10.9.4. Can you please help me to find the Drivers ? Many thanks. Giogio

  • Photosmart C4780 on Mac OS X 10.5.8

    Hello, After replacing my black printer cartridge, all of a sudden my printer no longer works.  I tried turning it off and on, unplugging the computer, and rechecking the connection via USB to my desktop  computer.  I even re-loaded the cartridges in

  • Camera raw 5.6 slider issue

    Hello, I am having a problem with the sliders in ACR.  When I drag any slider to make a correction, when I let go if the mouse it pops back to where I started from and acts like it is locked or something.  If I try a couple more times, it finally wor

  • Home hub 3 time not updating

    Hello, every since the clocks have gone forward the time on my router has stayed the same. Isn't it meant to auto update? I have tried restarting it and this doesn't help. The reason I'm asking about this problem is that it throws off all the other f

  • Beta 4 hangs from the start, created new profile and it also just hangs

    Since installing beta 4 have not been able to open gmail, tonight installed new update to beta 4 and now firefox hangs and wont even open. Created new profile first time for access to gmail which worked, tried this time but cannot even get firefox to