Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Why the date is different between in table and using script?
william xie
Posts: 28
 
Why the date is different between in table and using script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 9:33 PM
fiogf49gjkf0d
In table, the value of the date field is "9/1/2006 12:00:00.000 AM", but I can see the value for "objRS.Fields(0).vlaue" in my vbscript is: "8/31/2006 8:00:00.000 PM", why it get the different date ( with the Zone )?

How to make it is the same with the table?
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Why the date is different between in table and using script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 10:20 PM
fiogf49gjkf0d
If you are using the SLX OLEDB provider it is going to adjust for GMT/UTC. This is correct behavior. Or have I misunderstood?

Timmus
[Reply][Quote]
william xie
Posts: 28
 
Re: Why the date is different between in table and using script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 11:48 PM
fiogf49gjkf0d
Can you give me a piece of code using SLX OLEDB?
[Reply][Quote]
william xie
Posts: 28
 
Re: Why the date is different between in table and using script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 11:49 PM
fiogf49gjkf0d
You help will be appreciated.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Why the date is different between in table and using script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 11:57 PM
fiogf49gjkf0d
If you are using vbscript within the SalesLogix client and you are using Application.GetNewConnection for your ADO connection then you are using the SLX OLEDB provider. If you are then using SQL Query Analyzer to look at the data in the table, you are NOT using the SLX OLEDB Provider. This is what I suspect you are doing. Please correct me if I am mistaken.

Also, here is the OLEDB Provider article page for this site:

http://www.slxdeveloper.com/page.aspx?id=15

Also, here is a link to a tool that others in the bp community seem to like. I have never used it nor do I take credit for finding it. I am just passing along the info

http://www.albahari.com/queryexpress.html

Timmus
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 12:46:38 PM