From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert labview date/time to excel date/time

How do I convert the "seconds since 1904" from the function "Get Date/Time in Seconds" to an MS Excel date/time format? The application runs in the Solaris environment.
0 Kudos
Message 1 of 9
(4,879 Views)
hi, I am not sure about Solaris env.

Maybe this will help in one way or another.


Regards
ian.f
Sg/My
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 9
(4,879 Views)
JTB a écrit:

>How do I convert the "seconds since 1904" from the function "Get
>Date/Time in Seconds" to an MS Excel date/time format? The
>application runs in the Solaris environment.
>
>
If a string-wise solution fits your need, just use "seconds to
date/time" - it returns an explicit cluster from which you should easily
manage to build a date string that Excel recognizes - oz
0 Kudos
Message 3 of 9
(4,879 Views)
Sorry if it doesn't help.
I was having this vi created at the time i read your question. Furthermore, I am not in it (Solaris) at all.

Good luck!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 9
(4,879 Views)
This sounds useful. What format is Excel expecting. All I've seen is a date since 1900 or 1904. Are there fields in the MS Excel value?
0 Kudos
Message 5 of 9
(4,879 Views)
remember to give a file name with .xls extension.

You will have the time/ date saved to MS Excel File.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 9
(4,879 Views)
"ian.f" wrote in message
news:506500000005000000DDA60000-1031838699000@exchange.ni.com...
> remember to give a file name with .xls extension.
>
> You will have the time/ date saved to MS Excel File.

I can't see the message you are responding to but I suspect I have a similar
problem. When I write date strings to an excel file it initially formats it
as a string and not a date. If I double click the cell then exit the cell
then excel reformats the cell to date. But so far I have not found a way to
reformat a large section of cells all at once. I tried highlighting the
column and reformatting them but it didn't take. This is with the excel
toolkit.
0 Kudos
Message 7 of 9
(4,879 Views)
In article <506500000008000000025F0000-1031838699000@exchange.ni.com>,
x@no.email (JTB) wrote:

> How do I convert the "seconds since 1904" from the function "Get
> Date/Time in Seconds" to an MS Excel date/time format? The
> application runs in the Solaris environment.
>

Hi

I would break the date time string up into separate date and time strings
using some form of delimiter (a hard return, space or tab for example).
When you write that to a file and open in Excel the date and time will go
into separate columns.

HTH

Regards

Bill

mailto:wsymonds@clara.co.uk
0 Kudos
Message 8 of 9
(4,879 Views)

Mis-post

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 9
(3,651 Views)