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!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: Timezone - Date Formatting Issue
Paul Engelbrecht
Posts: 4
 
Timezone - Date Formatting IssueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 07 5:07 PM
Here's a tricky one: I am doing a SELECT statement of a single row from the ACTIVITY table via the SLX OLE DB Provider (v7.0).

I am specifing Central Standard Time as the Timezone paramerter in my connection string. The GMT date in ACTIVITY.STARTDATE is a follows: 2007-07-18 18:00:00.000

Here is the select statement to the OLE DB provider:
select STARTDATE as Date1, convert(varchar(25), STARTDATE, 100) as Date2 from ACTIVITY where activityid = 'V6UJ9A000011'

Here are the results:
Date1: 2007-07-18 13:00:00
Date2: Jul 18 2007 6:00PM

Notice how Date1 correctly adjusts the time (-5 hours) based on the Timezone extended parameter, however, when I attempt to format the date to USA AM/PM format in the query, the Timezone adjustment is lost!

I would like to display time in AM/PM format. Due to limitations in the external app, I am unable to perform any post-result formatting after the SELECT statement is executed, so I must perform the conversion to AM/PM formatting within the SELECT statement itself.

Is this possible with the SLX OLE DB Provider?

Ideas, fixes, suggestions appreciated.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Timezone - Date Formatting IssueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jul 07 2:58 PM
As soon as you wrap a column within a function the SLXOLEDB provider will not apply the GMT offset. What external app wont allow you to format data?

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 6:34:44 AM