<?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 VA format is not working with parsing a datetime in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/663162#M13905</link>
    <description>&lt;P&gt;I have a date time in a CSV, and VA recognizes it as a character when I upload the csv. Okay, so then I'm trying to backtrace as to what im doing wrong since even when I attempt to format/parse it into a datetime, it just shows up as an empty dot for each row of the newly created calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So then I go back to the simplest case and use the parse function to parse the example date that VA gives:&lt;/P&gt;&lt;P&gt;Parse('June 25, 2014 08:15:00 AM', 'DATETIME40.')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this fails and it still shows a dot in every row for this calculated column! How can this possibly be the case that I am using the example that VA gives and it is unable to parse it?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 13:36:05 GMT</pubDate>
    <dc:creator>mipate</dc:creator>
    <dc:date>2020-06-18T13:36:05Z</dc:date>
    <item>
      <title>VA format is not working with parsing a datetime</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/663162#M13905</link>
      <description>&lt;P&gt;I have a date time in a CSV, and VA recognizes it as a character when I upload the csv. Okay, so then I'm trying to backtrace as to what im doing wrong since even when I attempt to format/parse it into a datetime, it just shows up as an empty dot for each row of the newly created calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So then I go back to the simplest case and use the parse function to parse the example date that VA gives:&lt;/P&gt;&lt;P&gt;Parse('June 25, 2014 08:15:00 AM', 'DATETIME40.')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this fails and it still shows a dot in every row for this calculated column! How can this possibly be the case that I am using the example that VA gives and it is unable to parse it?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 13:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/663162#M13905</guid>
      <dc:creator>mipate</dc:creator>
      <dc:date>2020-06-18T13:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: VA format is not working with parsing a datetime</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/663470#M13909</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;
&lt;P&gt;I have found a solution to the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I figure that I will not be the last one to run into the same difficulties, so here is where I went wrong. I was opening my csv files in excel prior to uploading and the column that had the date in it seemed to be formatted fine (which is technically was). However, if I used a text edit to manually inspect the csv itself, I found that each date entry was enclosed in quotations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't initially think this was a problem since VA allows for csv uploads and the example datetime format had a comma in it (which implies that the entire datetime would need to be enclosed in quotations to avoid the comma being treated as the next cell). However, it turns out that this was exactly the problem. So my solution was to change the format to MM/DD/YYYY HH:MM:SS AM on my raw data and then upload that to VA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, that doesn't quite mark the end of the solution; Visual Analytics still read my datetime as a string. However, making a new calculated column and casting the string to a date time worked as intended this time around.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone ever runs into a similar issue, let me know and I can try help! (Would also recommend talking to support, they were the incredible ones who knew this was the issue!)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 13:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/663470#M13909</guid>
      <dc:creator>mipate</dc:creator>
      <dc:date>2020-06-19T13:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: VA format is not working with parsing a datetime</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/698606#M14433</link>
      <description>&lt;P&gt;Hi Mipate,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encounter almost the same problem with you when I try to parse my datetime data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uploaded my data from a csv file and convert the format of the date column in SAS Viya into DDMMYY. format. But when I tried to parse the converted date column, the parse month and year did not gave me the value I was expecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg: original date is 20/8/2020, but the parse month is 1 and parse year is 47.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you advise on this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Nur.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 09:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/698606#M14433</guid>
      <dc:creator>nurShahirah</dc:creator>
      <dc:date>2020-11-13T09:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: VA format is not working with parsing a datetime</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/698779#M14434</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/334324"&gt;@mipate&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a &lt;EM&gt;New calculated item &lt;/EM&gt;and utilize &lt;STRONG&gt;Parse&lt;/STRONG&gt; operator with ANYDTDTE. Here's a code snippet which you can copy-paste and see how it behaves:&lt;/P&gt;
&lt;PRE&gt;Parse('20/8/2020', 'ANYDTDTE9.')&lt;/PRE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 19:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/VA-format-is-not-working-with-parsing-a-datetime/m-p/698779#M14434</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-11-13T19:52:14Z</dc:date>
    </item>
  </channel>
</rss>

