<?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 Filter Excel Column after 3 days from current days in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Filter-Excel-Column-after-3-days-from-current-days/m-p/85626#M36591</link>
    <description>HI Experts,&lt;BR /&gt;&lt;BR /&gt;I have written below code, for filter the one column with after 3 days from current days.&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim worksheet as object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Worksheet = GetWorkBook(handle,nothing).ActiveSheet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim today As DateTime = DateTime.Today&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim dueDate As DateTime = today.AddDays(3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim crdDate As Date&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;crdDate = Date.Parse("09-11-2020")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;If (DateTime.Compare(crddate, dueDate.Date) &amp;gt;= 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;End If&lt;BR /&gt;&lt;BR /&gt;I have applied 3 data item as input variable.&lt;BR /&gt;&lt;BR /&gt;1. Handle= Number&lt;BR /&gt;crd date = Text&lt;BR /&gt;Due date = Text&lt;BR /&gt;&lt;/SPAN&gt;But I am getting the below error message. Can you please help me to solve the case. It very urgent.&lt;BR /&gt;Internal : &lt;STRONG&gt;&lt;SPAN style="color: #333399;"&gt;Could not execute code stage: Object of type 'System.String' cannot be converted to type 'System.DateTime'.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Asitabha Deb&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 01 Nov 2020 16:11:00 GMT</pubDate>
    <dc:creator>AsitabhaDeb</dc:creator>
    <dc:date>2020-11-01T16:11:00Z</dc:date>
    <item>
      <title>Filter Excel Column after 3 days from current days</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Excel-Column-after-3-days-from-current-days/m-p/85626#M36591</link>
      <description>HI Experts,&lt;BR /&gt;&lt;BR /&gt;I have written below code, for filter the one column with after 3 days from current days.&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim worksheet as object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Worksheet = GetWorkBook(handle,nothing).ActiveSheet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim today As DateTime = DateTime.Today&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim dueDate As DateTime = today.AddDays(3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;Dim crdDate As Date&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;crdDate = Date.Parse("09-11-2020")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;If (DateTime.Compare(crddate, dueDate.Date) &amp;gt;= 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff00;"&gt;End If&lt;BR /&gt;&lt;BR /&gt;I have applied 3 data item as input variable.&lt;BR /&gt;&lt;BR /&gt;1. Handle= Number&lt;BR /&gt;crd date = Text&lt;BR /&gt;Due date = Text&lt;BR /&gt;&lt;/SPAN&gt;But I am getting the below error message. Can you please help me to solve the case. It very urgent.&lt;BR /&gt;Internal : &lt;STRONG&gt;&lt;SPAN style="color: #333399;"&gt;Could not execute code stage: Object of type 'System.String' cannot be converted to type 'System.DateTime'.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Asitabha Deb&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Nov 2020 16:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Excel-Column-after-3-days-from-current-days/m-p/85626#M36591</guid>
      <dc:creator>AsitabhaDeb</dc:creator>
      <dc:date>2020-11-01T16:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filter Excel Column after 3 days from current days</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Excel-Column-after-3-days-from-current-days/m-p/85627#M36592</link>
      <description>I guess your code is returning dateTime type and you are trying to store it in string. So change the the type from string to DateTime type. Or vice versa&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amlan Sahoo&lt;BR /&gt;RPA Consultant&lt;BR /&gt;Equinix&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Nov 2020 04:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Excel-Column-after-3-days-from-current-days/m-p/85627#M36592</guid>
      <dc:creator>_Amlansahoo</dc:creator>
      <dc:date>2020-11-02T04:55:00Z</dc:date>
    </item>
  </channel>
</rss>

