Converting formatted excel date to useful data in labview

I am using the report generation toolkit for Office, and reading an excel file.  All the data comes back fine, except for the date column.  In excel the column is formatted as a date (ex. 5/5/05) but when it comes through in labview it ends up being something like "37740", it's the same effect if you switch the format in excel to general, the date changes to a number.  Is there anyway to leave the formatting the way it is in Excel and still bring into labview a useful date, or would I have to format the excel file differently?
Thanks.

I think I have it figured out using the Excel serial number date.  I attached a vi of something I threw together quickly to convert excel date serial numbers to labview date info.  I'm not 100% if it works all the time, but the few examples I tried worked fine.
Attachments:
Excel date to labview date.vi ‏53 KB

Similar Messages

  • Date range using "Date Field" from basic component

    Hello Everyone,
    I have been trying to create date range option available on the dashboard based on 2 Date Filed component.
    Backend for this Dashboard is BW with using BEx query. I have a info object (Z_Date)
    Now I want to have 2 date box using Date Field component 1. Start Date 2. End Date.
    I have tried following
    1. Start Date - on Select
    DS_1.setFilter("Z_Date", {"low":StartDate.getDate()});
    2. End Date - on Select
    DS_1.setFilter("Z_Date", {"High":EndDate.getDate()});
    both the scripts do not have any problem but it doest work as it is suppose to be.
    I have also tried based on following How to write script for DATE Range
    But no luck so far.
    Please share if any one have achieved date range working as mentioned.
    Thanks,
    Rajan

    Hi,
    Set Default Date in Both Date Prompts initially .
    1. Start Date - on Select
    var startDate = StartDate.getDate();
    var endDate = EndDate.getDate();
    var varRange = startDate + " - " + endDate;
    DS_1.setFilterExt("Z_SDPCD", varRange);
    2. End Date - on Select 
    var startDate = StartDate.getDate();
    var endDate = EndDate.getDate();
    var varRange = startDate + " - " + endDate;
    DS_1.setFilterExt("Z_SDPCD", varRange);
    Or
    Select Dates First Then Provide a Button (Done) .
    And write code On Click Event of that Button
    var startDate = StartDate.getDate();
    var endDate = EndDate.getDate();
    var varRange = startDate + " - " + endDate;
    DS_1.setFilterExt("Z_SDPCD", varRange);

  • How to consolidate data files using data pump when migrating 10g to 11g?

    We have one 10.2.0.4 database to be migrated to a new box running 11.2.0.1. The 10g database has too many data files scattered within too many file systems. I'd like to consolidate the data files into one or two large chunk in one file systems. Both OSs are RHEL 5. How should I do that using Data Pump Export/Import? I knew there is "Remap" option could be used, but it's only one to one mapping. How can I map multiple old data files into one new data file?

    hi
    datapump is terribly slow, make sure you have as much memory as possible allocated for Oracle but the bottleneck can be I/O throughput.
    Use PARALLEL option, set also these ones:
    * DISK_ASYNCH_IO=TRUE
    * DB_BLOCK_CHECKING=FALSE
    * DB_BLOCK_CHECKSUM=FALSE
    set high enough to allow for maximum parallelism:
    * PROCESSES
    * SESSIONS
    * PARALLEL_MAX_SERVERS
    more:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/dp_perf.htm
    that's it, patience welcome ;-)
    P.S.
    For maximum throughput, do not set PARALLEL to much more than twice the number of CPUs (two workers for each CPU).
    Edited by: g777 on 2011-02-02 09:53
    P.S.2
    breaking news ;-)
    I am playing now with storage performance and I turned the option of disk cache (also called write-back cache) to ON (goes at least along with RAID0 and 5 and setting it you don't lose any data on that volume) - and it gave me 1,5 to 2 times speed-up!
    Some says there's a risk of lose of more data when outage happens, but there's always such a risk even though you can lose less. Anyway if you can afford it (and with import it's OK, as it ss not a production at that moment) - I recommend to try. Takes 15 minutes, but you can gain 2,5 hours out of 10 of normal importing.
    Edited by: g777 on 2011-02-02 14:52

  • Date Determination using Date Types and Date Rules

    Hi Friends,
    Iam working on Date Management in CRM 7.0
    I have a requirement where I need to calculate the generate the Billing Date present in the Billing Plan tab of the Service Contract.
    I have gone through few of the Date Rules defined in the system. My requirement is to subtract the number of days from the Settlement Start Date and populate this Billing Date. It is clear from the existing date rules that we can subtract the days from Settlement Start Date. But I have a new Z field that is created using EEWB, in which user will enter the number of days. Now I need to subtract these days from Settlement Start Date. So, how can I get the reference of this new field. How can I subtract the number of days that the user will enter in this new Z field.
    Thanks & regards,
    Raju

    Hello Robert
    I am currently working on service request.I am facing a problem in the date management there.In my service request i have 5 statuses .One of my status is "Pending with consumer".I am using duration settings of service request.By duration settings , i am calculating the duration for which its pending with consumer.I am having 2 response profile one is 24*7 and other is having 9 working hours.In the service request from the SLA configuration i am calculating the escalation date & Time .I need to add the pending with consumer duration with the escalation date and time.I am facing a problem , i am explaining whole problem ..
    Let say if the pending with consumer duration is  1440 minutes(that is 24 hours) .I am adding the minutes to the escalation date through the date rule.
    I am facing problem that if the service profile is 24*7 then there is no problem but if it is having the 9 hours working service profile then after adding the minutes to it the escalation date is changing to 4 days ahead which is wrong.
    I need to add only those minutes for which it is pending with consumer in working hours for the 9 hours service profile
    I need to dynamically determine the working hours from the duration then add it to escalation dates when the status is changed from pending with consumer.
    Please suggest a badi will work or how to do it.Its urgent as i need to give demo.I will appreciate a quick reply.Please reply

  • Date printing using date mask

    Hi,
    Iam using Date mask to print the date in 96/01/10 (year/month/Date),(CHINA)  but iam getting 0.
    This is the code i have written.
    SET DATE MASK = 'YY/MM/DD'
    ,, ,,&REGUD-SWABZ(16)&  ( i have to get the date from this field ).
    Any one help.
    Thanks,
    Donald

    Hi,
    you can take the help from this code :
    <b>data : day(2), month(2), year(2).
    data : date1(10).
    data : date type sy-datum.
    date = sy-datum.
    day = date+6(2).
    month = date+4(2).
    year = date+2(2).
    write: date.
    concatenate year '/' month '/' day into date1.
    write : date1.</b>
    If it is helpful, please donot forget to reward the points.
    Sandeep

  • Cannot convert from excel to adobe (using acrobat 8 standard)

    Document will begin conversion and then just get stuck forever in an unending loop.  When I cancel the program (excel) get a prompt that says that Acrobat was unable to complet PDF process!!!  Help!!!

    Open the file in Excel. Then go to the FILE menu and select print. Chose the Adobe PDF printer and see if you get a PDF -- all of the other Acrobat processes depend on this printing process. If not, report what error messages you get. I suspect that you have deactivated AcroTray.exe that is a required part of the conversion part. If you like to test the latter, use the print-to-file option in the printer dialog, then open the file in Distiller to complete the process. The latter should either give you a PDF or a mess of error messages telling you why not.

  • How can i convert an excel file for use in an ipad mini?

    I have 3 or 4 Excel files on my PC that I would like to keep for reference on my iPad Mini.  I would have to update the files on a weekly basis.  What's the best solution for this?
    Thank you.

    go to the app store on the ipad and in the search area type in Excel and you will get several apps that will alow you to do this

  • AR: Journal Entries Report Convert to Excel using XML

    Hi All,
    The Client ask to add a column and change the output format to Excel (using XML Publish) to the standard report " AR: Journal Entries Report" whish is Spawned ..
    i know the Report calls other report called "Journal Entries Report - Output" using some parameters one of them is "P_LAYOUT_DESCRIPTION" which may be 1 of these values
    Print Detail By Account , Print Detail By Category , Print Summary By Account , Print Summary By Category
    and each one of them has different layout
    Now i want to know
    1- the ability of adding a column to this report (SPAWNED)
    2- The ability of translating the output to EXCEL,PDF,RTF (using XML Publisher)
    I Know the steps of how to convert a report to XML using data definition and template, but the spawned program calls the "Journal Entries Report - Output" by specific parameters and doesn't mention the template name that will be used or output type of the template
    as if i'll create 4 templates one for each layout how to let the Main report calls the output report giving it the correct template that should be displayed
    Best Regards,
    Amir

    Sure i used it , and i created many templates for it with different layouts ,
    But the user needs this report specially :(

  • How to use Date data type ?

    Hi @,
    I have to use date type in my datatype but the format for the same is different and i dont know where to specify the same please help?
    Also how to define datetime type with format yyyy-mm-dd.Thh:mm:ss ?
    If there any place to specify the format ? I have defined it in pattern ?please correct
    Regards

    Hi
    I guess you can do it message mapping by defining source and destination date types, using date functions currentDate, DateTrans, DateBefore, DateAfter, CompareDates
    By default, format of date is
    xsd:date
    Value is interpreted as date in format CCYY-MM-DD (according to the enhanced representation of ISO 8601).
    The abbreviations mean the following:
    CC: Century
    YY: Year
    MM: Month
    DD: Day
    Regards,
    Sai

  • Convert Excel to PDF using specific font Avant Garde ends up with missing text

    Hello, hopefully someone can help me out.  I have a problem with converting a specific Excel document to PDF using Acrobat 6.0.6.  Whenever this document is converted to PDF, on one specific computer there is are missing lines of text.  The font of the text is Avant Garde.  I can change the font to something like Arial and it will convert fine and all text will be shown in the PDF.
    I've already reinstalled Windows on this PC with its bare essentials and sure enough the problem persists.
    The Avant Garde font is installed by way of Adobe Type Mangager Light 4.1.  The fonts are Post Script .PFB.  I have a second and third PC with the same setup and these other two can successfully convert the Excel to PDF using Acrobat 6.0.6 without any problems (using the same Avant Garde font).
    I can uninstall and then reinstall Acrobat 6.0.6 and this will fix the problem temporarily but it will eventually come back within a day or two.
    Is there anything anyone can think of that would cause this problem to occur?

    I suspect the font is not embedded and not on that machine. You might try selecting "use Local Fonts" to see if it works that way. To check embedding, select ctrl-D and the font tab, or go to the document properties and select the font tab (they keep moving these around and don't remember where it is in AA6).
    If the font is not embedded, then change your job settings for creating the PDF to Press or Print forms and see if that solves the problem.

  • Issues importing/"using" date/datetime in Julia. Is it even present?

    I'm trying use the Date or DateTime in a script, which requires that I user "import Dates" or "using Dates". However, it can't find the module. I checked the the file list on the package info list and it doesn't seem to be present. Could someone confirm that this is the case?
    [edit] I can confirm that I was doing everything correctly. I switch to julia-git in AUR, and its working fine after I added the path ( push!(LOAD_PATH,"/usr/share/julia/base") ). I'd still like it if someone could confirm that I'm not just looking in the wrong place.
    Last edited by nstgc (2015-02-09 00:58:01)

    Sorry for the late reply. No, this module is still not included in the installation as far as I can tell as of today. Do know that today I merely checked "/usr/share/julia/base", however last time I checked it was no where to be seen. I also tried "julia> import Dates".
    Also /usr/share/julia/base is not in the load path.
    julia> LOAD_PATH
    2-element Array{Union(ASCIIString,UTF8String),1}:
    "/usr/local/share/julia/site/v0.3"
    "/usr/share/julia/site/v0.3"
    I don't know if this is a bug or if this version just doesn't include this package.

  • How to Read data from excel file without converting a excel file into .csv or any other format

    Hello,
    Can somebody suggest me how to read from an excel file (consisting of 10 work sheets) to an array?
    Thanks,
    She

    You have to be careful when using the spreadsheet-files vi's.  They are located in the Functions Palette under File IO, you will find "Write To / Read From Spreadsheet File.vi"s. 
    Here is what the Context Help says about the vi function:
    "Reads a specified number of lines or rows from a numeric text file beginning at a specified character offset and converts the data to a 2D, single-precision array of numbers. You optionally can transpose the array. The VI opens the file before reading from it and closes it afterwards. You can use this VI to read a spreadsheet file saved in text format. This VI calls the Spreadsheet String to Array function to convert the data. "
    This is quick & easy when the spreadsheet is all the same format.  You can set the format to string as well.  HOWEVER...  you do have to convert the Excel spreadsheet to text before using it.
    I haven't experimented with the Active-X, but it may look as the way to go if you have combination text / numeric values in the spreadsheet.
    If you did convert it to text, then you can use array functions as well and treating the file as an array of strings (see very brief example attached).  The example is to illustrate a point only  
    JLV
    Attachments:
    starting point for spreadsheet.vi ‏28 KB

  • Error (IES 10901) (WIS 10901) when using Excel 2010 file as data source..

    Hello,
    I have a annoying issue with using an excel 2010 file as a data source for a universe. Here is the background information.
    Setup.
    Client: Laptop running Win XP 32bit, Client tools installed with SP2 v9 (latest)
    Server: Win 2008 x64, BOE 4.0 SP2 v9  (latest)
    Task:
    1. On Client, with information design tool, created Project, DB Connection, Data foundation using an excel source on a share
    server\share\data.xlsx
    2.. Published everything to Repository
    3. Try to load univerise in Web Intelligence via creating a new report. I Drag accross the dimensions. When i go to preview data recieve error
    Database error: [Microsoft][ODBC Excel Driver] External table is not in the expected format.. (IES 10901) (WIS 10901)
    4. If i change the excel file to a 2003 format *.xls it all works correctly. Issue being that 2003 cannot hold as much data as a 2010 file so i need to use 2010.
    Extra Notes:
    1. Both the client and server have the latest Access drivers http://www.microsoft.com/download/en/details.aspx?id=13255
    2. Both client and server have a system DSN setup using the 32bit ODBC, same DSN names to the network share.
    3. The data excel source sits on the server on a share.
    4. I am believing that the isssue is within the area of BOE as when you connect to the excel file via ODBC using crystal 2011, you need to right click on the connection and tick "System Tables" to be able to use the excel 2010 file. The BOE Information design tool does not seem to have this option??
    Any advice with this would be great?
    thanks
    david

    Issue Resolved:
    Install
    Access Database Engine 2010 Service Pack 1 on the server
    http://support.microsoft.com/kb/2460011
    Reboot server once completed.

  • Exporting to Excel data only using sub reports in Crytal 9

    Post Author: pmstar
    CA Forum: Exporting
    I am using Crystal 9 verision.
    I have .rpt file that used 4 sub reports .In the main report I placed all the sub reports in the(detail section) row  and using the data for some caluculation in the main report to generate report fields.I placed the main report fields in next row( in detail section).However when i export the report .Its generating 5 empty rows  and 3 rows with 0. I have pretty much followed the solution from the article "c2017620" published in BO.
    Since i used the sub reports only to get some value for main report calculations .Is there any workaround for the following issue
    1.I do not want to print the subreport data when exported to excel data only.
    2.how can i get rid of the blank rows
    We have a lot of reports which has the same issue and we need to get the reports to work in Excel Data only .The reports works perfect when used in PDF format but its mandatory that we need to give the reports to the client using Data only.
    If possible, when responding with your recommendations, please include detailed steps.  It would be very helpful.Thanks in advance,
    PM

    Post Author: swat
    CA Forum: Exporting
    Hi,
    Of what i gather from ur scenario...this is what i did in one of my reports.
    I had to use two subreports and they had to occupy one cell each, in line with other fields.
    To obtain that,all the fields required in the subreport i put them into a text box.Therein restricting the fields to the txt box only...
    Then import that sub-report as it is.
    It worked for me....
    try out...
    All this only if've understood u right...

  • Converting Java.util date to XML date in format YYYY-MMM-dd

    I'm using below code to convert java.util.date to XML date
    public static XMLGregorianCalendar toXMLDate(Date dte) {
       try {
       // this may throw DatatypeConfigurationException
       DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
       GregorianCalendar calendar = new GregorianCalendar();
       // reset all fields
      calendar.clear();
       Calendar parsedCalendar = Calendar.getInstance();
      parsedCalendar.setTime(dte);
      calendar.set( parsedCalendar.get(Calendar.YEAR ),
      parsedCalendar.get(Calendar.MONTH),
      parsedCalendar.get(Calendar.DATE ));
       XMLGregorianCalendar xmlCalendar = datatypeFactory.newXMLGregorianCalendar( calendar );
      xmlCalendar.setTimezone( DatatypeConstants.FIELD_UNDEFINED );
      xmlCalendar.setFractionalSecond( null );
       return xmlCalendar;
    I need to get the date in the format YYYY-MMM-dd, but it returns in a format YYYY-MM-dd. Can anyone tell me how can i change the format? Thanks

    >
    The snippet of ApplicationClient where the assignment took place and the syntax occurred were:
    1. DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    2. DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
    3. Date date = new Date();
    4. CustomerDetail customerDetail = new CustomerDetail();
    5. customerDetail.setCollectionDate(dateFormat.format(date)); //got the above syntax error
    6. customerDetail.setCollectionTime(timeFormat.format(date)); //got the above syntax error
    .....I am running JDK 1.6.0_10, Glassfish v2r2, MySQL 5.0, Netbeans 6.1 on Windows XP platform.The format method returns a String not a Date. Why not just store the Date as is without formatting, and format it when you want to retrieve it from the DB and display it?
    m

Maybe you are looking for

  • What type of DVD should I use for Windows Backup?

    I am wanting to do my Windows Backup and I was wondering what type of DVD media I should use. Is it better to use a RW or only R type DVD. I have an HP Omni 220-1180qd, A5W89AV#ABA, running Win7 64 bit. I thought I read it can use CD's, DVD's but I w

  • How do I remove audio special effects, to go back to the original audio?

    I added some audioFX (from imovie library) to my clip. The chipmunk voice fx. But, I want to remove portions of it. The Help menu tells me to select the portions I want and press delete. When i do that, I lose all my audio. How do I just select the F

  • How do I set up a Hotspot between iPhone 3GS and ipad2

    How do I set up a Hotspot between iphone 3GS and ipad2

  • Pages & Keynote. Opening files from iDisk on your iPad

    I'm interested in buying both Keynote and Pages but want to know if I can access (and work on) files on my iDisk from my iPad. On my desktop I can go into my iDisk and double click on any Word or Powerpoint file (I have Microsoft Office on my desktop

  • Document list

    Hi Guru's i am an mm consultant.I need some details regarding the report.In FB03 we get list of documents and if we double click the document we get the value which will not appear in print out  but my Clint requirement is that he needs the value wit