Daylight Saving Time

ta5ta5 Member Posts: 1,164
edited 2008-04-08 in NAV Tips & Tricks
In order to create and consume data to/from an interface we have to deliver/consume date and time and timezone.

Format of the timezone is: "+nn:nn" which means hours and minutes relative from UTC.
As far is I understand our timezone CET is normally UTC+1, but it is UTC+2 in daylight saving time period.

Is there an easy why to find out whether the local datetime is daylight saving or not. I know that FORMAT(currentdatetime,0,9) returns the time part in UTC, but this seems to end in a tedious string comparing, etc.

Any better ideas?

Thanks in advance.
Thomas

Comments

  • kinekine Member Posts: 12,562
    You can read the data from registry through 'Windows Script Host Object Model'.WshShell automation.

    For registry description see http://www.windowsitpro.com/article/art ... ation.html
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ta5ta5 Member Posts: 1,164
    kine wrote:
    You can read the data from registry through 'Windows Script Host Object Model'.WshShell automation.

    Thanks Kamil!
    Cool stuff, do you know is there another way to read the registry? Because my personal experience with wsh is not so good, because some administrators want to disable it on production servers.
  • kinekine Member Posts: 12,562
    They want to disable registry reading or Windows Script Host?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ta5ta5 Member Posts: 1,164
    wsh :mrgreen:
  • kinekine Member Posts: 12,562
    Than you can try to use VB script host but I haven't tried it...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • krikikriki Member, Moderator Posts: 9,112
    [Topic moved from Navision forum to Navision Tips & Tricks forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.