<?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: How to change your DATETIME format in SAS VA? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701939#M14487</link>
    <description>&lt;P&gt;What about this as work-around. Keep a separate column carrying the value in milliseconds in your data for VA. Let's call this column '&lt;STRONG&gt;milliseconds&lt;/STRONG&gt;'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In VA - create a new calculated field using formula (&lt;EM&gt;&lt;STRONG&gt;dtime&lt;/STRONG&gt; being your datatime column)&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Concatenate(Concatenate(Concatenate(Format('dtime'n[Raw],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'DTDATE7.'), ' '), Concatenate(Format(Hour('dtime'n), 'Z2.0'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Concatenate(':', Format(Minute('dtime'n), 'Z2.0')))), Concatenate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(':', Format(( Second('dtime'n) + 'milliseconds'n ), 'COMMA6.3'))&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;..and use that as category role in standard line or other charts. Sorry for the rather long formula - but it's pretty much just taking apart the datetime information and concatenates the milliseconds into the given string so that information isn't lost when rendering. Only disadvantage is, that the given field is of character type but shouldn't matter too much for you rendering unless you plan some advanced time based calculations. You may also have to tweak above formula if you encounter any sorting issues given this is now sorted by the character value (e.g. by using YY/MM/DD numeric formatting instead)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Falko&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 01:29:56 GMT</pubDate>
    <dc:creator>FalkoSchulz</dc:creator>
    <dc:date>2020-11-27T01:29:56Z</dc:date>
    <item>
      <title>How to change your DATETIME format in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701802#M14484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS EG I have DATETIME values like this with format DATETIME22.3:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25JUN2014:08:10:55.340&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I open the same data in VA I receive the data like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25JUN2014:08:10:55&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Why is the last part ''.340'' gone? I also cant adjust the format because all I get is this:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Andalusia_0-1606390232756.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52018iD75E2ED3206C0971/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Andalusia_0-1606390232756.png" alt="Andalusia_0-1606390232756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A critical note: I use SAS VA 7.5&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 11:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701802#M14484</guid>
      <dc:creator>Andalusia</dc:creator>
      <dc:date>2020-11-26T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change your DATETIME format in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701819#M14485</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/358343"&gt;@Andalusia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many new date formats were introduced in VA8.3, including millisecond, week and quarter formats. My understanding is that VA7.5 doesn't support milliseconds. Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 13:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701819#M14485</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-11-26T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to change your DATETIME format in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701821#M14486</link>
      <description>It seems to me that a lot of people are struggling with this. Are their really no other ways to tacke this problem?</description>
      <pubDate>Thu, 26 Nov 2020 13:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701821#M14486</guid>
      <dc:creator>Andalusia</dc:creator>
      <dc:date>2020-11-26T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to change your DATETIME format in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701939#M14487</link>
      <description>&lt;P&gt;What about this as work-around. Keep a separate column carrying the value in milliseconds in your data for VA. Let's call this column '&lt;STRONG&gt;milliseconds&lt;/STRONG&gt;'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In VA - create a new calculated field using formula (&lt;EM&gt;&lt;STRONG&gt;dtime&lt;/STRONG&gt; being your datatime column)&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Concatenate(Concatenate(Concatenate(Format('dtime'n[Raw],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'DTDATE7.'), ' '), Concatenate(Format(Hour('dtime'n), 'Z2.0'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Concatenate(':', Format(Minute('dtime'n), 'Z2.0')))), Concatenate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(':', Format(( Second('dtime'n) + 'milliseconds'n ), 'COMMA6.3'))&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;..and use that as category role in standard line or other charts. Sorry for the rather long formula - but it's pretty much just taking apart the datetime information and concatenates the milliseconds into the given string so that information isn't lost when rendering. Only disadvantage is, that the given field is of character type but shouldn't matter too much for you rendering unless you plan some advanced time based calculations. You may also have to tweak above formula if you encounter any sorting issues given this is now sorted by the character value (e.g. by using YY/MM/DD numeric formatting instead)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Falko&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 01:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-change-your-DATETIME-format-in-SAS-VA/m-p/701939#M14487</guid>
      <dc:creator>FalkoSchulz</dc:creator>
      <dc:date>2020-11-27T01:29:56Z</dc:date>
    </item>
  </channel>
</rss>

