LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert current date into the day of the year

I need to convert the current system time date into a number. The number has to be the number of the day of the year!
For example if it is the 23.1.2005 at the system time then the number has to be 23! If the current day is the 5.2.2005 it has to be the number 36 and so on!


Can anyone help me how i can manage that???


thx stefan!
0 Kudos
Message 1 of 3
(2,379 Views)
Hello Stefan,

There is a function (Seconds to date/time), in the time & dialog group, that does that - the day of the year is one of the components of the cluster it returns.
You can connect directly to it a timestamp or a number representing seconds since 1904/1/1 (old LabVIEW timestamp).

Hope this helps,
Paulo
0 Kudos
Message 2 of 3
(2,374 Views)
thx for your answer! now it works!

stefan!
0 Kudos
Message 3 of 3
(2,367 Views)