<?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. :Re: cast varchar to date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232216#M83860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the calendar object to select a date which in a field, and obtain this value with the function "Only(FieldDate)".&lt;/P&gt;&lt;P&gt;Otherwise, you can use the input box and transform your varchar into a date format with the function "date#('2009-01-01','YYYY-MM-DD')"&lt;/P&gt;&lt;P&gt;Is it what you want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 10:52:29 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2010-05-05T10:52:29Z</dc:date>
    <item>
      <title>cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232212#M83856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! All&lt;/P&gt;&lt;P&gt;I'm new to Qlikview..&lt;/P&gt;&lt;P&gt;I have a input box which takes a date.. so i'm trying to pass that value to a stored procedure&lt;/P&gt;&lt;P&gt;SET vID=cast('$(vID)' as int);&lt;BR /&gt; SET vStartDate=cast ('$(vStartDate)' as datetime);&lt;BR /&gt; SET vEndDate=cast('$(vEndDate)' as datetime);&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SQL EXEC rpt_Machine_Details '$(vID)','$(vStartDate)', '$(vEndDate)'&lt;/P&gt;&lt;P&gt;I get an error that says Cast is not a valid function .&lt;/P&gt;&lt;P&gt;Is there a way to get a calender object just like in SSRS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 09:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232212#M83856</guid>
      <dc:creator />
      <dc:date>2010-05-05T09:30:46Z</dc:date>
    </item>
    <item>
      <title>cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232213#M83857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you tried to pass the parameters directly,check that if that works then use the variables and pass the parameters..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232213#M83857</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-05-05T10:24:35Z</dc:date>
    </item>
    <item>
      <title>Re. :cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232214#M83858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you want to do ?&lt;/P&gt;&lt;P&gt;You have 2 dates (Begin + End) and you want to generate a Calendar table ?&lt;/P&gt;&lt;P&gt;You can only use your SQL functions into the QlikView's SQL instruction (SQL SELECT, SQL SET...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it help you ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232214#M83858</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T10:25:28Z</dc:date>
    </item>
    <item>
      <title>cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232215#M83859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for the reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I pass the parameters directly it works perfect.. The problem come when I enter the date on the input box because it interpretes the data as varchar "2009-01-01"&lt;/P&gt;&lt;P&gt;So i'm trying to Cast that to date.&lt;/P&gt;&lt;P&gt;Is there a way I can choose the dates from a calendar instead of typing it in ?&lt;/P&gt;&lt;P&gt;@Martin&lt;/P&gt;&lt;P&gt;I don't want to generate a calendar table i just want to be able to select a date from a calendar and what ever date i select has to be assigned to (Begin or End date) variables from there i want to pass those variables to a stored procedure as parameters.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232215#M83859</guid>
      <dc:creator />
      <dc:date>2010-05-05T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232216#M83860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the calendar object to select a date which in a field, and obtain this value with the function "Only(FieldDate)".&lt;/P&gt;&lt;P&gt;Otherwise, you can use the input box and transform your varchar into a date format with the function "date#('2009-01-01','YYYY-MM-DD')"&lt;/P&gt;&lt;P&gt;Is it what you want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232216#M83860</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232217#M83861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Martin&lt;/P&gt;&lt;P&gt;Thanks its working perfect.&lt;/P&gt;&lt;P&gt;Is there any calendar object besides the calendar Slider which i can use to select the dates..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232217#M83861</guid>
      <dc:creator />
      <dc:date>2010-05-05T11:20:48Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232218#M83862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the calendar object, with "Calendar" as input style.&lt;/P&gt;&lt;P&gt;You also can divide you date into 3 fields (Year, Month, Day) and show the list box.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232218#M83862</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T11:38:34Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232219#M83863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Martin that's what I wanted to do using the calendar object&lt;/P&gt;&lt;P&gt;Thanks a million&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232219#M83863</guid>
      <dc:creator />
      <dc:date>2010-05-05T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232220#M83864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marthin, how come I can only see 1900 as the year and Jan or Dec on month when i'm using Calendar as input style&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232220#M83864</guid>
      <dc:creator />
      <dc:date>2010-05-05T12:31:59Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Re. :Re: cast varchar to date</title>
      <link>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232221#M83865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Certainly because your date is not in the right format. You can use the date#() function in your load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cast-varchar-to-date/m-p/232221#M83865</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T12:43:10Z</dc:date>
    </item>
  </channel>
</rss>

