mibuso.com

Microsoft Business Solutions online community
It is currently Sun May 19, 2013 12:53 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Daylight Saving Time
PostPosted: Tue Mar 11, 2008 3:28 pm 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1029
Location: Switzerland
Country: Switzerland (ch)
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 4:09 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
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.


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 4:36 pm 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1029
Location: Switzerland
Country: Switzerland (ch)
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 4:39 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
They want to disable registry reading or Windows Script Host?

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 5:43 pm 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1029
Location: Switzerland
Country: Switzerland (ch)
wsh :mrgreen:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 8:50 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
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.


Top
 Profile E-mail WWW  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 10:54 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7493
Location: Milan
Country: Italy (it)
[Topic moved from Navision forum to Navision Tips & Tricks forum]

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Exabot [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: