Excel time string

Hello,
i've got a problem with an Excel import. One cell is a date like 07.2.2008.
LV reads it a string array with 39485 for the date.
Is it possible to transform it back to the date?
Markus

Hi John,
Excel stores dates (usually) as number of days since 01.01.1900 - hence 39485 is 07.02.2008.
You can do two things:
1) switch excel to use the 01.01.1904 as start date (like LabView does)
2) subtract the offset of 4 years (number of days=1462) from the Excel date number (39485-1462)
Then you have to multiply the resulting number by 86400 (seconds per day), this can be wired to the LabView time functions...
Message Edited by GerdW on 02-18-2008 12:59 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
Excel-Date_LV80.vi ‏9 KB

Similar Messages

  • How to compare Date/time string

    I read from datalog file including Date/time string ,and want to query the special Date/time string span ,how to compare the data/time string ?

    Hello Joshua,
    To compare date/time you have to extract the different components (day, month, year, hour, minute, second) anyway. Why not "convert to seconds"? I think it's easier to compare one number (where you also can do other math, like calc the difference and so on) than to compare seven (?) parameters with some exceptions... If the dates are read from excel (there was a similar thread some days ago), why not convert to seconds in excel (just a format change)?
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to get Sum for my Elapse Time string for my group

    Hi,
    How can I get the sum of an elapse time string in my group footer 2 and group footer 1 from the report screenshot attached.
    I have a report that display TimeIn and TimeOut of an employee.
    For the total time I have created a formula that will take my time in seconds and displaying it in hrs, minutes and seconds.
    How can I get the sum of all the total time per day and display this in my group footer 2.
    As well I will need to add the grand total to group footer 1 for the total of days.
    The formula I have for the total time is as follow:
    WhileReadingRecords;
    NumberVar TotalSec :=  {TimeLogs.TotalTime};
    NumberVar Hours   := Truncate  (Remainder ( TotalSec , 86400) / 3600) ;
    NumberVar Minutes := Truncate  (Remainder ( TotalSec , 3600) / 60) ;
    NumberVar Seconds := Remainder (TotalSec , 60) ;
    Totext ( Hours ,   '00' ) +  ':' +
    Totext ( Minutes , '00' ) +  ':' +
    Totext ( Seconds , '00' )
    This is a seperate question below but related as well to this report.
    Another question I have is how can I round up for example 03:30:58 to 03:31:00
    And also how can I round down for example 03:26:10 to 03:26:00
    Any help would be appreciated.
    Thank you,
    Joe

    Hi Jamie,
    Well I ran into an issue with this. My Daily Total, there is no issue, it is displaying the proper time. But when I add a summary to my Group Footer 1, it doesn't add up properly.
    If I select only 1, 2, or 3 days my Date Range Total is adding fine but when selecting 5 days for example, as you can see from the picture below, for an unknowned reason the total of hrs is wrong.
    Do you know why this is happening.
    Than you for your help.
    Joe
    Picture below, this is working fine?

  • Converting time string to integer (****) in Labview 5.1

    So i'm very new to labview, learning as i go, but as the title says, i
    need to convert a time string to an ineger so that it can be placed in
    an integer array which will be compiled then writen to file at a
    specified end ( by user ) I just want 4 digits **** to indicate
    military time. And unfortuanly i'm stuck with labview 5.1. Any help would be greatly appreciated.

    I believe the diagram I have attached may have been possible in LV 5.1.
    Try to wire this up and see if it works.
    The icons may have changed a little between LV 5.1 and 6.1.
    Ben
    Message Edited by Ben on 10-15-2005 02:49 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Mitary Time.JPG ‏19 KB

  • Increment the number with date/time string. when ever the next date come's it should reset again with initial number

     i want to store the number of records in a file. Every time when ever i run the program the record will be incremented well i using forloop with count value 1 as a constant .in the for loop i am using autoincrement with the  feedback node . to view the number i have attached the indicatator .the number will be increment every time . i am using number to time time stamp  that is connected to get date/time string. from that we can view the date string and time string . so , my issue is when ever i close the code again it is coming with intial value . i should get from that number only where ever i close the code . after the date completed again it should come from intial value . i am attaching the code so that u guys can solve my problem.
    Attachments:
    record.doc ‏34 KB

    here you can see.......the file path in case structure in that i have included my requirement of increment the number 
    -> if the case is true then it goes in ok file path and the no of records string will pass in the file by seeing these code u will get the clarity
    my requirement is the number of records should increase ........ whnever the program runs...that i made it. by the next day again it should begain with the intial value.........that is my requirement. i hope u understand .
    suggest me how can i use the  intial  value .......
    Attachments:
    code.vi ‏35 KB

  • How to convert a number in to a time string?

    I have calculated a time in minutes: 3.75. But I will show it as a time string: 3:45 or 00:03:45 or anything like this.
    Yes, I can convert it manually, but then I can not use it in a diagram. I have a formula that calculates times for a given diameter and I will show the values in a diagram. The x axis should show the diameter, and the y axis should show the time in a typical time format eg: mm:ss.
    How can I solve this?

    Hello
    I just wish to add that I am unable to say:
    Engineers made a good or a wrong choice.
    They made one choice.
    I don't know if they imagine the odd consequences of this choice.
    But what they did with their choice is coherent.
    At least, it is as long we don't enter the area of import foreign sheets.
    When they import from XL, they forgot to take care of an important info available in .xls files which describes the date_time used starting point. It's 1/1/1904 for .xls docs created on Mac but an other one for docs created under Windows. Given this omission, imported date_time values may be wrong.
    When they import from AppleWorks it is completely foolish.
    You american users are well treated but us, european ones are in the mud.
    When we import an AW6 spreadsheet containing dates on a machine whose setting is the standard in use here: date format dd/mm/yyyy
    if the OS is 10.4.x we get odd values (I'm no longer born)
    if the OS is 10.5.x, Numbers quits.
    Apple engineers responded to Apple France that they where unable to reproduce the behavior.
    Sure, they failed to set the system's date format to the described one.
    This remind me an old bug which they can't reproduce too.
    It striked French keyboards but the tested with american ones.
    Sometimes I'm afraid that they smoke too much the carpet in Cupertino's offices
    Yvan KOENIG (from FRANCE jeudi 19 juin 2008 14:19:45)

  • Date time string from UME-SPML interface

    Hi,
    I am using the UME-SPML interface to manage users in SAP UME and using AS ABAP user management as the user store for UME.
    I have noticed a problem in the date time string returned in the SPML search response when I search for a user. When you search for a user, normally you get 3 date time strings for "validfrom", "validto" and "lastmodifydate".
    These are what have been returned in the SPML response:
    <attr name="lastmodifydate"><value>20101019030648Z</value></attr>
    <attr name="validfrom"><value>20101019010000Z</value></attr>
    <attr name="validto"><value>25001230010000Z</value></attr>
    When I check the same user with the user management administration console, I get these:
    Date of Account Creation: Oct 19, 2010 2:06:48 PM (Eastern Standard Time (New South Wales))
    Start Date of Account Validity: Oct 20, 2010 12:00:00 AM (Eastern Standard Time (New South Wales))
    End Date of Account Validity: Dec 31, 2500 12:00:00 AM (Eastern Standard Time (New South Wales))
    The timezone I am in is GMT10 (Australia Eastern Standard Time (New South Wales)) and now we in day light saving so effectively we are in GMT11 now.
    You can see that the datetime string for "lastmodifydate" correctly reflects what's shown on user management administration console.
    But the datetime strings for "validfrom" and "validto" seems to get the conversion wrong: both seem to be using 12 hour format instead of 24 hour format. (2010 10 19 01 00 00Z should be 2010 10 19 13 00 00Z and 2500 12 30 01 00 00Z should be 2500 12 30 13 00 00Z)(I have put in a space in the string to break up the date time components)
    Anyone has any idea what went wrong here?
    Regards,
    GG

    Also search service.sap.com for the term "sy-zonlo".
    Personally I am a member of the [flat earth society|http://en.wikipedia.org/wiki/Flat_Earth_Society] when it get to this topic, because it causes no end of problems.
    Most customers simply stop operations on 31.12.xxxx or before, or alternately use reporting tools to make corrections afterwards.
    In the security realm, SAP also respects server side timestamp tolerances (only a few seconds are allowed).
    Time is server time in my books. Some people work late, others early - and there is nothing you can control to stop a customer in the US from placing an order via a system in Japan anyway.
    Anyway, this is probably a program error with the 12 hour format in the component software or possibly the API interface to user management in your release so you should open a customer message with SAP (my best guess).
    Cheers,
    Julius

  • Conversion from Excel time to labview time

    Hello all,
                                       I want to convert the excel time stamp to labview time stamp. Can you all please help me how to do this ?
    In my application labview time is 05-11-12 14:56:00 and its equivalent excel time representation is 41218.6222222222.
    I tried this formula,
    Labview time =  24*3600*(Excel time - 1460) but anwer is wrong.
    Thanks.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

    Ok, here's what I found.  The conversion is:  Time Stamp = 86400*(Excel Time - 1462).  But here's the kicker: the timestamp is GMT.  You have to add your time zone offset as well.  I'm in the Eastern Time Zone, so I had to add 5 hours.  I'm not sure what DST will do to this.  I'm sure there's ways around it, I just don't have time to look into it more right now.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Excel Time.png ‏10 KB

  • Dynamic excel connection string

    Hi, 
    I have excel file as source, where the file name can be anything; so to fetch the data from the excel file, I wanted to create a dynamic excel connection string. 
    So these are the following steps I have followed:
    1. For Each Loop: 
    Step 2:
    Step 3: Excel Connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\Product\Marketing__Products___Services.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES";
    Connection String Expression : @[User::SourceFolder]+ @[User::SourceFile]
    And Below is the error I'm getting
    TITLE: Microsoft Visual Studio
    The component reported the following warnings:
    Error at PlanningIT_Service [Connection manager "Excel Connection Manager"]: The connection string format is not valid. It must consist of one or more components of the form X=Y, separated by semicolons. This error occurs when a connection string
    with zero components is set on database connection manager.
    Error at PlanningIT_Service: The result of the expression "@[User::SourceFolder]+ @[User::SourceFile]" on property "\Package.Connections[Excel Connection Manager].Properties[ConnectionString]" cannot be written to the property. The expression
    was evaluated, but cannot be set on the property.
    Choose OK if you want to continue with the operation.
    Choose Cancel if you want to stop the operation.
    BUTTONS:
    OK
    Cancel

    Hi,
    *) Make sure file names are retrieved properly:
    A.txt if you have Name and extension under Collection tab - > Retrieve file name
    A  if you have Name only under Collection tab - > Retrieve file name
    C:\Users\sathya\Desktop\Source_Folder\A.txt  if you have Fully qualified under Collection tab - > Retrieve file name
    *) variable property - Set EvaluateAsExpression = True
    Try below links for examples:
    http://msdn.microsoft.com/en-us/library/ms345182.aspx
    http://mikedavissql.com/2013/09/16/loop-through-excel-files-in-ssis/
    http://www.allaboutmssql.com/2012/09/sql-server-integration-services-rename.html
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Time string to time stamp

    Hi Everyone ,
    I have two time strings :
    05-06-2009 > 02:00-03:00
    13-06-2009 > 05:00-06:00
    I want to convert them into timestamp and then i want to compare them to know which one is older.
     If its possible without converting to timestamp then that would be good too but I guess the best way would be to convert the string to timestamp first.
    Rgs
    M Omar Tariq
    Solved!
    Go to Solution.

    Its now working ,
    Thanx , I was doing a mistake, the following thread solution works
    http://forums.ni.com/t5/LabVIEW/timestamp-conversion/m-p/1283734/highlight/false#M533356
    Rgs
    Omar

  • Time String to Timestamp Conversion Problem

    Hi,
    I attempted to convert time string to timestamp but I failed. What is the wrong with it? I need a timestamp to create waveforms.
    Egemen
    Solved!
    Go to Solution.
    Attachments:
    Time String to Timestamp.png ‏18 KB

    You are right Gogineni, when I got the error, I was using %S in the format string for Format Date/Time String function and %3u in the format string for Scan From String.
    I found the solution in this thread - use %S%3u in both places.
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

  • Week returned by Format Date/time String

    Has anyone tested the Format Date/Time String function with the week formating codes?
    I want to create a subfolder for each week and name the folder accordingly. For 17 December 2003 the week is 51 in the year 03 but I get week 50. For 29 December 2003 the week is 01 in the year 04 but I get week 52. For 01 January 2004 the week is 01 in the year 04 but I get week 00. For 29 December 2004 the week is 53 in the year 04 but I get week 52. For 01 January 2005 the week is 53 in the year 04 but I get week 00. There is no difference using %U or %W as code (this will be if 1 January will fall on Sunday or Monday which it does not in my examples).
    I know normally a year has weeks 1 to 52 but in some years the last week may have week
    53 as in 2004. Adding 1 to the week does not solve the problem. For 29 December 2003 it would give 53. And 53 maybe a correct week as in 2004. For 1 January 2005 it would give 1 but the week is the week in the year before.
    All the week numbering I expect is correct for Germany but the function is not. Is the numbering from the function correct for your country?
    Please reply where you are located and if the function will work right for you.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

    I have found two resources about date and time and their formats.
    One is the ISO Standard 8601, the second is a german page. On this page along with other information all definitions used by Windows is listed.
    According to this page the ISO Standard has been established in Europe and most industrial countries. In USA it is ANSI X3.30-1985(R1991) and NIST FIPS 4-1.
    Since the ANSI definition you mentioned allows only Sunday (Jewish) or Monday (Christian) as first day of the week it ignores the Islamic world. For them the first day is Saturday. I could not gather information about Buddhistic or Hinduism
    based countries.
    For my application and the market aimed the ISO format is the one which will be choosen. Using %W and handling of week 0 should do it.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Problem converting U8 array to date-time string

    Hi All,
    How can I convert U8 array (time_t data type from C dll) to date time string?
    A dll function that I am calling has a structure of string, integer and time_t as one of the parameters. Instead of passing cluster, I pass an array of U8 of the size that the structure should be. All the members of the strcuture and parsed correctly except the date/time.
    Function Parameter:
    typedef struct {
    Int AlarmState ;
    Int AlarmGrade ;
    TCHAR AlarmMessage [100] ;
    time_t AlarmTimeStamp ;
    } WV_ALARM_INFO ;
    Total size = 4 + 4 + 100 + 4 = 112
    Using Call Library Function, I set the parameter type to Array of U8 and size 112.
    After the array is populated when the function is called, I have done the following to interpret date and time.
    1) Using Extract Zero Terminated String.VI I converted U8 array (of size 4) to string.
    2) Type casted string to integer (I32).
    3) Swap bytes
    4) Swap Words
    5) Format Date/Time String.
    Please see the attached screenshot for visual display of the above.
    Ideas on why the year is incorrect?
    Mimansa
    Attachments:
    Time.JPG ‏102 KB

    Hi Mimansa,
    Is it only the year that is incorrect? Also, where did you find that ABC\0 VI that you use 3 times? Did you make it or is it in a labview library somewhere?
    Thanks,
    Laura

  • When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds.

    When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds. From decimals of inputline. If i disconnect the input to the subVI "Get Date/Time string vi" it will work propperly, it also doses if I reconnect it. I use LabViev 7.0.
    So the problem i solved, but i dosent understund why it works in this way. Does it indicate other problems which will make my researchprogram unrelaible ?
    Attachments:
    Waveform_Time_to_Date_Time_String.vi ‏18 KB

    Hello.
    I checked your vi and it fails as you state.
    It runs fine if: 1 Convert number to timestamp OR
    2 Wire a constant to want seconds?
    In labview 7.1, no problems.
    I think is a job for NI engeniers.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Time string format

    Bonjour,
    J'ai un data logger DT85 de Datataker qui me renvoit des Doubles dans Labview que j'insère dans un tableau et que j'index pour obtenir les valeurs. Le hic est que je recois également un temps relatif en format hh:mm:ss.sss que j'ai besoin d'extraire. Est-ce que quelqu'un peut m'indiquer comment faire pour extraire mon temps?
    Merci,
    Richard
    Solved!
    Go to Solution.

    Have a look at the attached VI.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Time String to Milliseconds.vi ‏11 KB

Maybe you are looking for

  • Is there any way to decrease latency other than changing the I/O buffer

    Hello, I'm recording with two presonus firepods linked together. which allow for me to record up to 16 track at a time. I'm noticing some latency that makes it somewhat hard to record with. I do not want to lower the buffer for fear of intruducing di

  • Problem in test case

    Hi guys, we are using solution manager for testing.  We have created the test case with test case type "Test Document" in SOLAR02 transaction.  Here we are trying to attach our test script sothat it can be included in the test note generated by blue-

  • Select from sys table in package procedure

    Is it possible to use a table in the SYS schema in a procedure defined in a package? Right now, these errors are raised: SQL> SHOW ERRORS PACKAGE BODY App_security_context; Errors for PACKAGE BODY APP_SECURITY_CONTEXT: LINE/COL ERROR 17/3 PL/SQL: SQL

  • Creating Financial Statement Version

    In configuration document "102 External Financial Accounting Basics" says I should copy from the standard version BAUS the new FSV. My problem is that in my system somebody deleted the BAUS financial statement version. Does anyone knows where can I f

  • Can't sync my new ipad Air to my Leopard iMac

    I just bought a new iPad Air and discovered that I can't sync to my iMac (Leopard).  I was going to upgrade to Snow Leopard but could not as I don't have enough space (2 GB). Don't know what to do as I would like to transfer most info from my current