<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: VBO Data - SQL Server - Date / Time-Columns in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46788#M2692</link>
    <description>Hi, we have experienced a similar issue and resolved it by casting the date in the SQL, e.g. Cast(DATE as Varchar(256)) as "Date"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Christopher Newsom&lt;BR /&gt;RPA Developer&lt;BR /&gt;Leeds Building Society&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Dec 2019 16:54:00 GMT</pubDate>
    <dc:creator>ChrisNewsom</dc:creator>
    <dc:date>2019-12-02T16:54:00Z</dc:date>
    <item>
      <title>VBO Data - SQL Server - Date / Time-Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46785#M2689</link>
      <description>​Hello,&lt;BR /&gt;&lt;BR /&gt;when the result set of a query does contain a date and/or time column, the data is not reflected correctly in die blue prism collection.&lt;BR /&gt;There is some utc calculation ongoing.&lt;BR /&gt;And so when the data in the database already is in utc the results are wrong.&lt;BR /&gt;How can I achieve, that the blue prism collection represents exactyl the query result?&lt;BR /&gt;&lt;BR /&gt;And by that I do not mean, changing the queries in the database to return&amp;nbsp;times in local time so that blue prism can convert it back to utc.&lt;BR /&gt;Columns with the SQL Server Data Type date cannot be converted to and from utc.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Christian</description>
      <pubDate>Fri, 29 Nov 2019 09:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46785#M2689</guid>
      <dc:creator>ChristianPanhan</dc:creator>
      <dc:date>2019-11-29T09:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: VBO Data - SQL Server - Date / Time-Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46786#M2690</link>
      <description>I've copied an action in OLEDB VBO and added the following code before returning collection (oDataTable is the data), similar should work with SQL Server VBO I guess:&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;For Each column as DataColumn in oDataTable.Columns 
	If column.DataType = GetType(DateTime) then
		For i as Integer = 0 to oDataTable.Rows.Count-1:
			Dim dateObj as Object = Nothing
			dateObj = oDataTable.Rows(i).Field(Of Object)(column.ColumnName)
			If (dateObj &amp;lt;&amp;gt; Nothing) Then
				oDataTable.Rows(i)(column.ColumnName) = oDataTable.Rows(i).Field(Of DateTime)(column.ColumnName).ToLocalTime()
			End If
		Next
	end if
Next​&lt;/PRE&gt;
&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2019 10:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46786#M2690</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2019-12-02T10:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: VBO Data - SQL Server - Date / Time-Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46787#M2691</link>
      <description>Hi Christian,&lt;BR /&gt;&lt;BR /&gt;I don't know if this helps but I had similar case when downloading SharePoint list to BluePrism with OLEDB - all dates were shifted. Solution was to convert date format to text format already in the query. If needed You can revert it in BluePrism.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Michal Szumski&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michal Szumski&lt;BR /&gt;RPA developer&lt;BR /&gt;Rockwell Automation&lt;BR /&gt;Europe/Warsaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2019 12:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46787#M2691</guid>
      <dc:creator>MichalSzumski</dc:creator>
      <dc:date>2019-12-02T12:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: VBO Data - SQL Server - Date / Time-Columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46788#M2692</link>
      <description>Hi, we have experienced a similar issue and resolved it by casting the date in the SQL, e.g. Cast(DATE as Varchar(256)) as "Date"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Christopher Newsom&lt;BR /&gt;RPA Developer&lt;BR /&gt;Leeds Building Society&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2019 16:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/VBO-Data-SQL-Server-Date-Time-Columns/m-p/46788#M2692</guid>
      <dc:creator>ChrisNewsom</dc:creator>
      <dc:date>2019-12-02T16:54:00Z</dc:date>
    </item>
  </channel>
</rss>

