Date format in excel

hi all,
i am using form6i.
i am writing data into excel sheet(using ole2 package). i have one date column among them. The date format in excel should be in 'DD/MM/YYYY'.
In my form i have date format like 'YYYY/MM/MM HH:MI:SS'. so i have converted that column using
TO_CHAR(TRUNC(:date_col),'DD/MM/YYYY').So i am getting output in the format what i need,but still in excel i am seeing data format as 'DD-MM-YY'.
is any conversion is required while writing into excel?
but when i set the excel data format should be in 'DD-MON-YYYY'
i am getting output as '26-JAN-10' but i want output in excel like
'26/JAN/2010'.
Please help.
Thanks..
Edited by: GD on Nov 26, 2011 8:21 PM

If you want the field to be treated like a DATE in excel, you have to set the column-format to DATE and apply the appropiate Format. To get the needed ole-statements, start the macro-recorder, do the changes in excel and then check whats written in the macro and convert it to OLE.
If the field should only be shown as a date, you can put a ' in fornt of the date-value.

Similar Messages

  • Controlling the data formatting in excel using jsp.

    Hi,
    How to controlling the data formatting in excel using jsp with out using external jar files such as "jexcel" and "POI". And one more limitation is that it should be compatible with java 1.2.1

    dineshniot wrote:
    Hi - Is there any possibility to automatically display the chart for the logged datas using write to measurement file or write to data file? Please let me know as soon as possible.
    Thanks and Regards,
    Dinesh
    As an aside, "data" is already a plural.  The singular is "datum."
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • List View does not retain date formats from Excel

    i am using List View control to isplay data. When i scroll the horizontal bar inlist view, the date format changes to numbers. is there were to stop this happening.
    regards
    Chandra

    Hi Chandra,
    Are you getting the values from any live connection or is it static data from the excel file?
    You can also try to goto properties of component and in the appearence tab,select the format of the values as "DATE".
    Incase you are getting the values from the live connection, you can select a different cell which would reference to the data coming from the connection and use it into the components.
    e.g.: if values are coming in cell"A1" then goto some empty cell as B1 and type in"=A1" and use this new cell into the component.
    Let me know if this works.
    Thanks,
    Amit.

  • Problem with reading English UK date format in Excel

    When I build and debug the rulebase I get the following error: Error in rulebase: "Cannot perform comparison expression on right expression with type number".
    The actual problem is that it does not read the date correctly in Excel. I have got the following date comparison >=31-09-2011 in excel. Instead of reading 31st September 2011 it tries to reed as 9th of the 31month 2011...
    I have set all language and location, region settings to English United Kingdom (dd/MM/yyyy), United Kingdom but it seems it does not help. In Excel I have set English UK as well.
    OPM version: 10.1.0.27
    Windows 7
    MS Office 7
    I had this problem previously but I resolved by changing language or location setting I think, or language for non-Unicode programs. I cannot remember exactly. But this time it seems it does not work. Reinstalling does not work either.
    Can anybody help with this?
    What settings OPM uses to read the date?
    Thank you!

    Jasmine, you are right 31-09-2011 is a wrong date, I just typed any date as an example and didn't realize that it is an impossible date . We use many dates in Excel in a format dd-MM-yyyy (we do not type in date in runtime).
    In the link you have sent it says that "Formatted attribute values based on rulebase region are used".
    Date:
    " if your region was set to the United States you would see the following: MM-dd-yy"
    "Region set to Australia, which includes the date format dd/MM/yy
    Region in our project is set to United Kingdom so the date format should be dd-MM-yyyy.
    I have checked that OPM Project Properties Language is set to English (UK) so it should be fine.
    The strange thing is that it works fine on other laptops - the date 03-09-2011 is red as 3 September 2011, but on my laptop it is red as 9 March 2011.
    When it comes to read the date 30-09-2011, on other laptops is red as 30 September 2011, but on mine cannot make a date as there is no month number 30 so it throws the error "Cannot perform comparison expression on right expression with type number"... What actually happens is that on my laptop OPM reads the dates from Excel in American format.
    As I wrote earlier, It was working fine at my laptop as well before reinstalling Windows. I had this problem long time ago again but I was able to resolve it by changing language,region settings in Windows I think.
    Now it seems like I have got the same language,region settings in Windows as I had before, my colleagues got the same language, region settings on their machines as well.
    Iit seems like dd/MM/yyyy is red fine (UK format), but the format dd-MM-yyyy is red in American format...
    What settings should be set in Windows or Excel or maybe somewhere else OPM to read the date from Excel in English UK format dd-MM-yyyy?

  • Date format in Excel Export

    We do see different behaviour of date fields in exported Excel files and are not able to clearly identify why this happens.
    And even after reading through dozens of documents, web pages and forum posts it is still not clear how this should work.
    The questions are quite simple:
    Can we expect that dates in exported Excel files (exported from for example the ActiveX viewer) will be formatted as per the format set during the design of the Crystal report or will it follow the Regional Settings on the PC where it is exported?
    If it does not follow the Regional Settings is there any 'easy' way to accomplish that?
    Thanks and regards, Stig

    But I do not know what gave you the impression that there is any SDK or any development going on here.
    1) ActiveX is used in one of two scenarios:
    a) COM SDK
    b) BusinessObjects Enterprise
    Never in the CR designer... Not sure why you'd place a question that in your mind clearly concerns BusinessObjects Enterprise into the Report Design forum. That was most certainly an incorrect forum by the above definition...
    2) Given the info you provided, I had a 50% chance of being correct about SDK...
    3) Since you are using BusinessObjects Enterprise ActiveX and have a question on that, you want to pose the query to the correct forum, which is [SAP BusinessObjects Enterprise/Edge, and SAP Crystal Reports Server Administration|BI Platform;.
    Re.
    Our question is just a simple question related to using the standard export function via the export button in the ActiveX viewer.
    - Trust me, in light of my guess re SDK, your question was not "simple"...
    - Ludek

  • Date format in Excel report output

    Goodmorning All.
    Am using XML publisher for some reports. The current report is in Excel. Everything is fine on this. I want to print the date parameter in 'MON-YY' format.
    In the 'Text Form Field' option, I have used the type as 'Regular Text'. In the 'Add Help Text' using the formatting as follows: <?format-Date:P_TO_DATE1;MM/YYYY?>. This seems to send the date parameter '1-Jun-12' as 'Jun-12'. But when it opens in excel, Excel assigns the cell 'Custom' format and type as 'd-mmm-yy' instead of 'mmm-yy'. So the final output still comes in DD-MON-YY format.
    I have tried changing the type to 'DATE' and date format to 'MMM-yy' in the 'Text Form Field' option. But still the excel custom format is overriding the final output.
    Any suggestions?
    Thanks
    Z

    Hi Alex,
    I used the following code in the 'Form field help Text': <?xdoxslt:format_date(P_FROM_DATE1,'MMM-yy','yyyy-MM-dd', 'en-us', $_XDOTIMEZONE)?>
    Then I wrote some letters immediately after that and ran the report. When I opened it in excel, Excel assigned format category as 'General' to the output cell. So the output now comes as desired format as 'Jan-12XYZ'.
    So it seems, if there will be some additional characters after the dates, then excel does not auto reformat the XML output to the custom date category.
    Now the big question; How to do it without the trailing characters i.e. 'XYZ' in the above output. If I remove them, then Excel will again try to custom format the date. I read soemwhere that blank space can be used to append but am not sure how it will be in the code.
    By the way in the 'text Form Field Options' I am using type as 'Regular Text'.
    Appreciate any help.
    Thanks
    Z

  • Incorrect date format in excel reports

    Hi,
    Some Activity exported from Activity overview to excel have wrong date format. For example
    Some have 21/04/2008 u2013 Correct
    Some have 13/04/09 u2013 Incorrect
    All the dateu2019s in the database seems to be correct like '2008-04-13 00:00:00.000'.
    Client is using SAP B1 2005 SP01 PL-48. Is there any know issue?
    I tried the same in B1 2007 upgrading the database. All the date seems to be correct when I export it here.
    What may be the reason?
    Any suggestions will be appreciated.
    Regards,
    Mohan

    Hi Gordon,
    It took some time for me to verify in the client machine.
    I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
    04/10/09
    04/11/09
           13/04/09
           14/04/09
           19/04/09
    (Ignore the *)
    I think, the problematic dates seem to be exported to excel in the paste special text format.
    Any Idea why this is happening?
    Regards,
    Mohan
    Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM

  • Date Format in Excel reports

    Hi Experts,
    Is there anyway I could print the current date in the YYYY/MM/DD format in the excel report. The format works in a pdf format but in excel the date gets auto converted into MM/DD/YY format. The format-date doesnt work. Please help.
    Thanks,
    Swarna

    Hi Gordon,
    It took some time for me to verify in the client machine.
    I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
    04/10/09
    04/11/09
           13/04/09
           14/04/09
           19/04/09
    (Ignore the *)
    I think, the problematic dates seem to be exported to excel in the paste special text format.
    Any Idea why this is happening?
    Regards,
    Mohan
    Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM

  • XML Publisher - how to make column as date format in excel output

    Hi,
    I am having a XML publisher report , output is excel format. There are some date fields in reports, which are being displayed as "General" type in excel.
    Any way to restrict it in Date type only.
    Please explain the solution in detail. I am using rtf template.
    Regards
    Sandeep

    Hi Sandeep,
    I have the same issue. After looking at a lot of replies from various blogs, some suggest to use this format in your rtf.It did not work for me. You could try this and check if it works for you.
    <?format-date:datefied;’yyyy/MM/dd’?> where the format can be specific to your use.

  • Numbers dont see data format from excel - how to import excel doc and have correct data format?

    Have a problem with excel doc when open in Numbres - all datas are wrong - numbers cant read correctly a excel date. How do I fix it?

    I was hoping this would be one of the bug fixes in the recent update. There was something in there about improved Excel compatibility.  I have yet to have this problem with Excel dates so I cannot test the new version to see if it is any different. What version of Numbers are you using? Did you update to the latest version (3.2)?

  • Prblm in Date format when exported to excel

    Hi ,
    I had a problem when using the Export To Excel option from Portal. The data is getting fine populated in Excel but it's in General No Specific Format. But I wanted the data to be in its original format even when exported to Excel. Like...
    Country -
    Date Goods Delivered
    India----
    01.01.2001
    America----
    05.12.2004
    Singapore----
    12.04.2003
    Here the country should be of type TEXT FORMAT and Date Goods Delivered should be in DATE FORMAT(Here its visible as date but it's in General format)
    I am facing problem with date, it is displayed(01.04.2006) as shown above but it's in general format. I wanted it to be in date format at excel.
    I am in BW3.5 with portal version EP7.0
    Please suggest the solution and I had even gone through previous forum questions related to this but couldn't get.....the solution.
    points will be assigned...
    Regards,
    rudra.

    Hi,
    My end users requirement is to get all data in Standard format. We can't ask to select the date column and change the format in excel as there are more date fields(columns ).
    Using macro i had one problem,even though i am not sure..
    i can't enable the macro to get enabled in page load of export to excel as it is to be done at users end...
    If theres any possibilty of enabling....pls let me know
    Thanks for your valuable suggestions...
    Regards,
    rudra.

  • Export to excel issue - date format cannot be displayed properly

    Dear all,
    When we do a export to excel, if it has date format, we always have problem on displaying it in excel. Some of the date if we change the data format, it will be changed to the correct way. Others will remain the old data format. Any idea?
    I've checked the SAP note. It doesn't work. Thank you in advance.
    Regards,
    Yuka
    SAP Note:
    Click the Excel symbol in the task bar in Business One
    Save the file as ".txt"
    Open Excel and open the file as a ".txt" (Select in "Files of type" All Files (,))
    In the Text Import Wizard Select "Delimited" and for "Start import at row" 1.
    Click "Next"
    In the Text Import Wizard - Step 2, select 'tab' in "Delimiters", for "Text qualifier:" choose ""
    Click "Next"
    In the Text Import Wizard - Step 3, highlight the Date column and in "Column data format" check the radio button Date in the drop down menu beside Date you can set the date format you require
    Click "Finish"

    Dear Yuka,
    You may check this thread:
    Re: Incorrect date format in excel reports
    Thanks,
    Gordon

  • Date conversion from Excel to the SAP format

    Hi,
    I have created a BDC program which uploads daat from Excel sheet.
    There is a date field also, the format of which can be any as per the end user (it will be one of those allowed by SAP).
    However, the file will be used for execution by another user who may have a date setting which is different than that from the one in Excel.
    Eg. End User's date format: DD.MM.YYYY, SAP User's date format: MM/DD/YYYY
    So, how do I convert the date format from excel to the format which will be accepted by the transaction during the recording?
    Regards,
    Dave

    Hi Dave,
    I have faced the same issue while uploading the date to the bdc.
    if ur date format is DD.MM.YYYY in the excel file, first of all you need to change this to dats format ie YYYYMMDD ie character8 format and pass to the bdc, it will automatically convert to sap format
    ie you need to convert splitting at .
    data lv_date type char10,
            lv_dd type char02,
            lv_mm type char02,
           lv_yyyy type char04,
    v_date type char08.
    lv_date = '30.12.2011'.
    split lv_date at '.' into lv_dd lv_mm lv_yyyy.
    if strlen(lv_dd) lt 2.
       concatenate '0' lv_dd into lv_dd.
    endif.
    if strlen(lv_mm) lt 2.
       concatenate '0' lv_mm into lv_mm.
    endif.
    concatenate lv_yyyy lv_mm lv_dd into v_date.
    "Please use the variable V_DATE to populate to ur bdc"
    Edited by: Rahul Babukuttan on Aug 11, 2011 5:35 PM

  • Refer to Doc ID 825030 which talks about applying of patch for correction of date format in web adi. Is this patch can be applied on R12.1.3 instance as this patch released date is very old. Please suggest if there is another patch which be applied to cor

    Refer to Doc ID 825030 which talks about applying of patch for correction of date format in web adi. Is this patch can be applied on R12.1.3 instance as this patch released date is very old. Please suggest if there is another patch which be applied to correct the date format in web adi. currently the date is coming in number format.

    Hello,
    This document is for 11i Date Format Changes When Loaded Into Webadi (Doc ID 825030.1)
    use this document instead for R12 : Incorrect Date Format in Excel Sheet Generated Via WebADI (Doc ID 828253.1)
    <Moderator Edit - deleted MOS Doc content - pl do NOT post such content>
    Best Regards,
    Eric.

  • Read Custom format of Excel

    I want to read custom date format from excel through JAVA:
    Issue:
    In my excel cell is of custom format MMYYYY. Which is 011900.
    When i click on it It shows me 1/0/1900. I am using jxl.jar for reading excel.
    When i am reading it through java it is not taking date as 0. So it is gicing me value 121899. Dont Know why??? Could you please help me. Its very critical to my project.
    Thanks in adance.

    There could be weird Excel stuff happening, or weird JXL stuff, but basically here's what is happening:
    You have Day 0 of Month 1 of 1900. This is treated as the day before Day 1 of Month 1 of 1900, which if you get out your calendar you will see is actually Day 31 of Month 12 of 1899. And if you look at that with a format which displays only the month and year, you'll see 12 as the month and 1899 as the year.
    So: don't treat something with only month and year as a Date, unless you're prepared to fill in the day part properly.

Maybe you are looking for

  • Inbound idoc not displayed in WE02

    Hello All, I have two different sending and receiving SAP system for IDocs. I am trying to learn ALE scenario. For this purpose, I created everything on my own on the sending system viz. idoc segments, idoc type, message type, rfc destination, port,

  • How can i do bitwise (binary) operations (AND, OR, XOR)

    I need to do bitwise (binary) operations such as AND, OR, and XOR.  For example, how do I AND 10101000 with 11111000?

  • Are There anyone,that obtained successfully to install the OEM in the OEL4?

    Hi ! Are There anyone,that obtained successfully to install the OEM in the OEL4? I made this question becouse I cound't find some rpm's packages as follows: Checking for compat-libstdc++-296-2.96-132.7.2; found Not found.     Failed <<<< Checking for

  • Approval for SC created through ECC PR in PDP scenario

    Hi All, We are implementing SRM 7.13 and have enable PDP scenario without PI.As per standard configuration SRM SC is created in APPROVED status and is available in SOCO for buyer. In our case we have a requirement that SC should be created in Awaitin

  • Itunes 11.1.4 freezes when syncing with iphone

    Itunes 11.1.4 Periodically freezes when not syncing.  always freezes when starting to sync Iphone or ipad.  sometimes gets far enough to see Message: "ITunes was unable to load data class information from Sync Services.  Reconnect or try again later"