the date format when downloading Excel at the table of the ADF.

Hello

Am using jdeveloper 11.1.1.6.0

Downloads some data from Excel to my adf:table.

In my excel I have a Date column, which has the date in the format of ' mm/dd/yyyy hh: mm: a ' (01/12/2013-04:33). I need the same format to download in my af:table.

This is the code that I used my bean.

Formatter DateFormat = new SimpleDateFormat ("mm/dd/yy hh: mm");
Say string = theToken;
Date date1 = formatter.parse (say);
System.out.println ("///Date///" + date1);   Here're the value that

Kill Jan 01 05:19 IST 2013


rw.setAttribute ("Date1", date1);

But in my page user interface, it just shows as dd/mm/yyyy.

The Date in my af:table attribute is TimeStamp (6).

Kind regards

Prasad K T,.

+ 919840021070

Prasad,

Your models are not added. The abbreviation for months is "MM" not "mm". If excel uses a specific model, why don't you use the same to analyze the data?

Then write the date in a table and display it on a page are different actions. You must specify to the timestamp for the model in the table.

Timo

Tags: Java

Similar Questions

  • DATE format - when you set the column in the table

    Hi friends,

    I came across a piece of code that applied a TO_DATE() function on a column of type date.

    I have two tables t1 and t2 and they have columns col1 and col2 respectively of type DATE
    t1
    col1 DATE
    
    t2
    col2 DATE
    There is also a variable var1 and is defined as follows:
    var1 DATE;
    now, I like conditions below in the code:
    AND to_date(t1.col1,'dd/mm/yyyy') = to_date(t2.col2,'dd/mm/yyyy')
    AND to_date(t1.col1,'dd/mm/yyyy') = to_date(var1,'dd/mm/yyyy')
    This code has failed on the Production with an error: ORA-01861 literal does not match the format string

    I changed the code to remove TO_DATE() and it worked fine. Dev said that they used this function for that if the two columns or variable is in the date format of diff.,... they can be brought into harmony.
    for example if col1 is dd/mm/yyyy and col2 is dd/mm/yyyy, then there will be a problem.

    My doubt is... in a given environment if we create a table and define a DATE type column, or define a variable of type DATE, their format may be different at any time? I think that no.?

    In this scenario, the date format can be different?

    Thank you

    your thoughts are correct. A date is a date, the question of how it is shown on the interface is a different matter.

  • Why PE10 uses the incorrect date format when it creates the files during import?

    Hey,.

    Since I upgraded to 10 EP, I had a problem with the date when the import format.  I have always used the format yyyy-mm-dd when I import my pictures, and this is the format that I choose when I import using Organizer, but it invariably creates files in the format yyyy-mm-dd.  It becomes tedious to rename folders.  Any advice?

    Thank you!

    Hello

    Try the appropriate fix

    Mac: http://kb2.adobe.com/cps/930/cpsid_93...

    Win: http://kb2.adobe.com/cps/930/cpsid_93...

    Brian

  • Remove formatting when downloading reports?

    Hi all

    APEX 4.2.5

    XE 11.2

    The developed application is a financial one. As a result, most of the reports is formatted to display values in currency...   Users also download some of the reports, and they ask that when the report is downloaded, the currency formatting is removed so they do not have to remove it manually in Excel.

    for example, in the reports is $35 678.00

    and when exporting, they just want to be 35678.00.

    unless Ive missed something, I don't see a simple way to do this? My thoughts now would be to substitute somehow the column formatting currency, for a column not formatted

    I would appreciate any help.

    Rgds

    Richard

    Create columns duplicated without the formatting and adding conditions

    for example

    ASK = 'CSV' - download

    ASK <> 'CSV' - no download

    Gus

  • Possible to get the European date format by default without UK correction?

    I have some terrible evil with the terrible in Excel and other programs American date format when I have my computer, the value of the American region.

    I thought I fixed that by changing just my computer region UK but now I have GBP currency by default and autocorrects obnoxious affecting my Z s and add unnecessary U in every way.

    I live in a non-English speaking part of Europe, but my native language is English and I work mainly with the dollar sign ($).  Is there anyway to get the normal spelling, the right currency by default ($), 24 hours, but without the fool US default date format?

    Thank you.

    Explore SystemPreferences settings: language and region and the Advanced button.

  • conversion of the error of date / time when using easy excel reports

    I export a 2D array to an excel file using Excel reports easy vi. I have no problem with that. My data has a number of areas with different formats (text and date/time). My problem is the following:

    * some (in other words, not all data is in the same worksheet) the veiled values of date/time to mm/dd/yyyy format whereas they should be in mm/dd/yyyy (is the excel format it is y in!). Essentially, I have 30/09/2008 (September 30, 2008) in a cell. After ticks on Oct. 1, it will display the date as, 01/10/2008. Excel thinks that this date is in the format dd/mm/yyyy.

    This is a known error in earlier versions of Excel (2002), in particular when you convert a .csv, .xls file. The solution, it was not to add "Local: = True ' at the end of the vba command string (see here: MS Knowledge Base). Here, in LabView I'm not sure how to proceed.

    I tried to change the format of the column in question to the 'text' by calling an Excel Macro in LabView, but do you think I can find the vba command to do? No, not so much.

    LabView saves the Excel file in 97-2003 format (I use MSOffice 2007) and I wonder if the version they are using does not consider the time correction, as described in the knowledge base (or if it applies).

    Any suggestions, I'd love to hear from you.

    Kind regards

    David.

    Hi LaRisa,.

    I was able to find the cell Format Excel set vi and successfully change the format of the value of the cell. It wasn't until I had found the vi that I realized that I've been down this road before. Change the format after the table has been created does not change values dd and mm switching that has already occurred. However, if I did before I "created the table" (or vi Excel table) and set the format to be '@' then it displays the string like 'Text' in the Excel file. That's nice. I can control what cell, row, or column to format now. If I want to be in a date format then I must apply the Format of cell vi after the easy Excel table vi.

    It sounds like a stupid race around me...

  • Change the Date Format of the data in Excel

    Hello, my data is stored in an excel file. They are connected to the Warehouse Builder through ODBC.

    When I used an operator to change the format of a date column, I have an error which referred to ODBC.

    Someone know how I can change the date format of the data that are not initially stored in an oracle database in oracle,.

    but in an excel file.

    If you need to know anything else, please ask me. It is so important to me. Thank you.

    When you directly use the warehouse with MS Excel ODBC without the bridge builder, then send your question directly in the Warehouse Builder Forum:

    Warehouse Builder

    We are discussing only matters concerning Oracle gateways.

    Thank you

    Klaus

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • How to change the date format in Lightroom, when importing images?

    When you import into Lightroom, you get the following structure in Lightroom for Macintosh HD.

    Year-> Date.

    I want some level 3 like this structure.   Year-> month-> Date

    How to do this?

    Hi lennartr,

    When you import images, you can change the Date Format in "Copy as DNG, copy or move", but not in the Add box.

    On the right panel, you expand the Destination folder and change the Date Format.

    Let me know if it helps.

    Kind regards

    Tanuj

  • Receive error message when calculating the two fields with different date format

    I'm more familiar with SQL Server and Oracle, then after a search online without success, I ask here.

    I use developer PL/SQL with DB Oracle 11g Release 11.2.0.2.0 Enterprise 64-bit

    MyTable:

    ID_Number VarChar2

    Date of Date_Received

    Select ID_Number,

    Date_Received,

    To_Date (substr (ID_Number, 1.6), "YYMMDD") SentDate,.

    Date_Received - NumDays To_Date (substr (ID_Number, 1.6), "YYMMDD")

    FROM MyTable

    Where substr (ID_Number, 7.3) in ('ABC', 'ABD')

    and length (Trim (translate ((substr (ID_Number, 1,6)), '0123456789',' '))) a null value

    ID_Number Date_Received SentDate NumDays

    131002ABC1654106 10/16/10/2013-2013 14 2

    131004ABD8813899 4/12/2013-4/8/2013 4

    131014ABD1844832 10/16/10/14 OF 2013-2013 2

    Sometimes the first 6 characters in the ID_Number aren't the numbers and length (Trim (translate deletes records))

    I want just the records where NumDays > 2

    I tried to put the request in a subquery and using where NumDays > 2 outside.  I also tried using the calculation directly in the Where clause.  Without it in Where clause it works very well, with him in a place, I get the following error:

    ORA-01931: Date format picture ends before converting all of the input string


    I don't know how to put the two dates in the same format.  I tried to declare the format without result.  I don't understand how I can calculate in the selection, but do not use the same calculation in Where clause.

    Thank you for your help.

    Hello

    SQL is a language to describe the desired results.  How the system gets these results belongs to you don't have much say about which conditions will be applied when.

    One place where you can control the order of things is a CASE expression.  When you say

    CASE

    WHEN condition_1

    THEN expression_1

    END

    You can be sure that expression_1 will be evaluated only when cond_1 is set to TRUE.

    Try something like this:

    WITH got_sent_date AS

    (

    SELECT id_number, date_received

    CASE

    WHEN the TRANSLATION (SUBSTR (id_number, 1, 6)

    , 'x' 0123456789 '.

    , 'x'

    ) IS NULL

    THEN TO_DATE (SUBSTR (id_number, 1-6)

    , "YYMMDD".

    )

    END AS sent_date

    FROM MyTable

    WHERE (id_number, 7, 3) SUBSTR ("ABC", "ABD")

    )

    SELECT id_number

    date_received

    sent_date

    , date_received - sent_date AS num_days

    OF got_sent_date

    WHERE date_received > sent_date + 2

    ;

    If you would care to post some sample data (CREATE TABLE and INSERT statements) and the results desired from this data, I was able to test this.

    Of course, you'll still errors of execution if id_number starts with 6 digits, but they do not have to be valid, for example '131100' or '130229'.  This is one of the reasons why the date information storage in VARCHAR2 columns are a bad idea.  To work around this problem, see

    https://forums.Oracle.com/message/4255051

  • Keep the format when exporting to Excel

    Is it possible to keep the number and width of columns formatting when you export to Excel?

    You also have a possibility to customize your class "export."

    (1) you can set a custom action that does something totally different and make it available to your users. For example, we have done something in the past where a custom window gets arises and you can 'choose' attributes in your grid that you want to be exported, rather than be "linked" to the configured columns.

    (2) you can set the class that makes the export in the control panel under the frame settings. Maybe it's a little less flexible that you will be always tied to the model and the existing export format (it is passed to your class, rather than the CSVExport class), but you would be in full control of output. Like Sasha said, by default, CSV is the output format and things like formatting are obviously not taken in charge.

    I think that #1 would be the way to go because it offers the most flexibility for your users, but there should be a somewhat higher effort.

    # 1, you can see an example of this in action here:

    http://branchbird.com/images/exporting-options.PNG

    Hope that helps.

    Patrick

    Edited by: Branchbird - Pat on 11 October 2012 08:27

  • ORA-01821: date format not recognized when you use the format TSH:TZM model

    Hi all

    Running on the Oracle 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production database

    I guess I am missing something here... but the following SQL code raises the exception ORA-01821.

    SELECT to_char(CAST(to_timestamp(SYSDATE) AS TIMESTAMP WITH LOCAL TIME ZONE),'YYYY-MM-DD"T"HH24:MI:SSTZH:TZM') as date_updated FROM DUAL;
    

    ORA-01821: date format not recognized

    01821 00000 - "date format not recognized".

    * Cause:

    * Action:

    If I change the model of TZDS or TZR time zone format... This works.

    SELECT to_char(CAST(to_timestamp(SYSDATE) AS TIMESTAMP WITH LOCAL TIME ZONE),'YYYY-MM-DD"T"HH24:MI:SSTZD') as date_updated FROM DUAL;
    

    2013-09 - 04T 13: 24:16EDT

    I need to format a date in a date in the correct format with time zone for an Atom (RFC3339) feed

    for example. 2013-09 - 04T 14: 11:09 - 05:00

    I do not know why the TZH:TZM triggers the error...

    Database NLS settings have anything to do with it?

    NLS_TIME_FORMAT = HH.MI. SSXFF AM

    NLS_TIMESTAMP_FORMAT = DD-MON-RR HH.MI. SSXFF AM

    NLS_TIME_TZ_FORMAT = HH.MI. SSXFF AM TZR

    NLS_TIMESTAMP_TZ_FORMAT = DD-MON-RR HH.MI. SSXFF AM TZR

    Thanks for the help

    If you want to change the display format, can you use to_char with the expected format

    SELECT to_char (TO_TIMESTAMP_TZ (to_char (sysdate,' YYYY-MM-DD HH), "YYYY-MM-DD HH:MI:SSTZH:TZM"), "YYYY-MM-DD"T"HH:MI:SSTZH:TZM") t1d FROM DUAL;

  • What is the DateTime format, when you insert data in the DateTime column in the DB?

    Hi all

    I can't find an example to insert data into db that contains a DateTime column. I tried different date format, but none of them works. Someone has an idea how to do that? Is there a sample project?

    Thank you

    Dong

    Thanks for your reply, I'll check and give it a try.

    Dong

  • Answers-download Excel report to loose the zeros

    Hello!
    When I download answers report to Excle (Word) I lose the zeros.
    1.2500 -> 1.25
    The zeros are important and I would like to than this format as it is in the OBI in all types of download (Excel, Word etc.).

    When I export to PDF (cross from Oracle BI publisher) zeros are correct.

    Any help please.

    My config, OBI on Windows 2003 32-bit:
    Product Information
    Oracle Business Intelligence Product Version     10.1.3.4 (Build 080726.1900)
    Physical Presentation Catalog Path     \\?\C:\OracleBIData\web\catalog\teb\root
    Oracle BI Server Data Source     AnalyticsWeb
    Available Paging Memory (MB)     5176
    Available Virtual Address Space (MB)     1833

    Hello

    You can try adding the following statement in the section custom CSS, column properties:
    "" mso-number-format-@:

    See a preview here:
    http://i53.Tinypic.com/a09kqv.jpg

    This will process the data in the column as a text for download to Excel, conserving spaces beginning or end.

    Thank you

  • Date format changes in the variable of presentation

    Hello
    I have a problem with the date stored in the variable of presentation.

    I have simple guest with the calendar control (default value date is set to session or deposit to the current date variable). Selected date is stored in the variable of presentation PP_DATE.
    I have a simple report with the title to view the contents of the variable PP_DATE.

    And now the problem.

    When I navigate to the page of dashboard with this report, I will get date of variable PP_DATE in a format (there are difference when I use the variable session or repository). After that I have will push the Start button, I get a different date format of variable PP_DATE.

    Screenshots are stored and described in this PDF file: [PDF with screenshots: https://docs.google.com/uc?export=download & id = 0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]

    There is difference between session variable and repository. When I use the reference variable I'll get "TIMESTAMP."... "the variable PP_DATE, which is the default initialization in variable Repository Manager. I tried to remove the boot by default, but I automatically added after saving changes.
    What is the default value of crimped guest of session variable, I get another date variable PP_DATE format that refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I changed standard value DATE_TIME_DISPLAY_FORMAT ' yyyy/mm/dd hh' to "yyyy-mm-dd hh:mi:ss.mss" because I am reading data from excel, where dates are stored in the format MSSQL. But this isn't the reason for my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.

    The result of this strange behavior is that I get errors when I do some calculations (e.g. TimeStampDiff) to the variable PP_DATE. I get the error when I am accessing the dashboard page. Everything is ok after that I will push the Start button.

    You have some tips?

    Thank you

    Kishore Guggilla wrote:

    But I need sometimes current day default value in the command prompt, sometimes first day of the month etc...

    How do you manage that using variables to repository then?

    I have a block of initialization to initialize a few variables to repository.
    Initialization block a 1 day refresh interval.

    Select trunc (sysdate, 'mm'),
    LAST_DAY (trunc (sysdate, 'MM')),
    trunc (sysdate, 'DD'),
    trunc (sysdate, 'YYYY'),
    TO_DATE (' 31,12' | to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'MM')),
    TO_NUMBER (to_char (sysdate, 'DD')),
    trunc (ADD_MONTHS (sysdate-1), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-1))),
    trunc (ADD_MONTHS (sysdate-2), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-2))),
    trunc (ADD_MONTHS (sysdate,-3), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate,-3)))
    of the double

Maybe you are looking for

  • You print envelopes with HP LaserJet CP1525nw color

    I tried to print envelopes on our printer above.  My document is in Word is formatted accordingly for a #10 business envelope Under the terms of the HP help function, I found the info on how to set up my document print options, then it would print co

  • Qosmio X 770 - 11 c - function buttons stopped working

    function keys have stopped working - unknown reason because no special actions not completed - pc recover function used to a known point that the buttons were ok - no results - last PPV installed 1.5.15.64 - no results - 1.70 BIOS is installed

  • in the windows 7 backup and restore bookmarks to find file for Chrome

    I forgot to save my favorites of chrome before I upgraded to windows 7 10. But I have a back up and restore files created a few moments before I upgraded to windows 10. Where can I find that my favorites of chrome in windows 7 restore file?

  • BlackBerry smartphone 8 GB cards?

    I replaced the 1 GB card with a new SansDisc 8 gb card but the phone recognizes up to 3.6 disp. disk space.  Am I maxed out at 3.6 or my phone settings need to be tweaked to get all 8 concerts out of this new memory card?

  • The user affected by error "an error occurred...". »

    11.1.2.3. no recent patches.I have 2 users who are connecting remotely through VPN who know intermittently the following error message when you apply through the workspace:«Error: an error occurred during the processing of your request.» Please check