LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Date-time conventions

Ouf.
Long tests to do this...
I think it works.

Try it and tell me .
0 Kudos
Message 11 of 40
(3,402 Views)
Nops... again.

2006-01-01 is a week 52 in Denmark. Your code shows week 53 :(.

regards
Pawel
0 Kudos
Message 12 of 40
(3,397 Views)
I think you should give up. Danish calendar is not possible to understand 😉
0 Kudos
Message 13 of 40
(3,393 Views)
I think it's possible to do, but there is a problem : you should enter a all calendar for the next century in a data base, and then check it.
If you see at the code, it's normal that week 53 is display, because I tell the code to put 53.
Can you give me a calendar of danmark, I'm about that I can do what you what (Now, it's a personnal challenge ! 😉 )
I will try to understand how the danish calendar work and then work on it to obtain the good week display !

Waiting for your calendar.

Regards.
0 Kudos
Message 14 of 40
(3,393 Views)
Thanks madness, but I will drop this idea. I have already started to change the code and I will not include the week functionality.
Therefore, I think we should drop it, unless there will be a need to that.

kind regards
Pawel
0 Kudos
Message 15 of 40
(3,389 Views)
no problem.
Good luck to reprogram your code.
0 Kudos
Message 16 of 40
(3,388 Views)
Hi Pawel,

This is not a Denish problem!
This is also a problem in Holland. It think it is Western European problem!

It is not linked to the locale time zone setting on the operating system (which I would expect). You can work around it, but....

Thanks for noticing the problem!

BJK
0 Kudos
Message 17 of 40
(3,380 Views)
Hi BJK

I am sure that there is a logic behind it, but it is too strange to use in the regular basis :).

The most funny thing, which I learned from this, is that e.g. this week in Denmark is week 50 and in US it is 49. And now..... let's make an agreement with the US custommer, that the product will be ready in week XX. That measns that Eastern Europe has XX+1 week more to finish the project :))). Maybe this is the reason, why it is like that :), European people need more time :).

Funny...

regards
Pawel
0 Kudos
Message 18 of 40
(3,377 Views)
European people do not need more time!
They are ahead of time!!!!

Plus there is a time difference. I think I am going to take a holiday!

Regards,
BJK
0 Kudos
Message 19 of 40
(3,374 Views)
Hi you all,

I haven't seen this earlier. The rule of numbering weeks is very simple and is an ISO standard. Unfortunatly there are some traditional numberings which will confuse. I have the same problem but for priority reasons I didn't work for a complete solution.

Look at my thread to understand how weeks are numbered following ISO rules which are used in western europe and the format date/time function which follows the traditional american rules. Unfortunatly they are so incompatible that there is no simple solution to get the ISO week number from the format date/time function.

BTW using the ISO standard forced Germany to change the law to make Monday the first day of the week.

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
0 Kudos
Message 20 of 40
(3,349 Views)