LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create the "calender week" ?

Solved!
Go to solution

Hello,

i found the "Format Date/Time String function" to create the current date.

But how can i create the currrent calender-week which can be 1..52?

 

Thanks a lot for help

0 Kudos
Message 1 of 6
(3,160 Views)

week of year.png

0 Kudos
Message 2 of 6
(3,152 Views)

How do you want to display this information? It should be easy to do with the vi that you found.

Tim
GHSP
0 Kudos
Message 3 of 6
(3,151 Views)

Do you just want the date or would you also like time and other thing too? What is your input going to be to determine what week you want?

Tim
GHSP
0 Kudos
Message 4 of 6
(3,148 Views)
Solution
Accepted by topic author OnlyOne

I found the solution in this thread:

http://forums.ni.com/t5/LabVIEW/Date-time-conventions/m-p/168375/page/3?view=by_date_ascending

 

@wilburwu: The %W is not working (always).

For example 01.01.2013 returns "00" instead of "01"

                   01.01.2010 returns "00" instead of "53"

 

Currently i just use the example from the above thread which works fine.

 

Thanks for the help

 

 

 

0 Kudos
Message 5 of 6
(3,145 Views)

Hi,

 

good to know! 

Wundering why such kind of bugs are still being found in 2011!

0 Kudos
Message 6 of 6
(3,137 Views)