<?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: Telling if date format includes time in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3858264#M9497</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;, thank you for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your suggestion is good, but I am worried about performance of it. Because, to determine if something is a date format, we would theoretically need to evaluate every single value, would we not? If we check the first value and find it's a date, we can't exclude the possibility that the value after that may be datetime (and so on and so on).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either way, I've thought about it and believe that it's best to consider all date measures passed to be datetime. I will just include an option for users to specify if they want it to be date after the fact (while still using their formatting no matter what it is). I think this gives the end-user more flexibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 07:53:15 GMT</pubDate>
    <dc:creator>JSJB</dc:creator>
    <dc:date>2024-04-22T07:53:15Z</dc:date>
    <item>
      <title>Telling if date format includes time</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3853710#M9483</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing a custom visual that shows given columns of data and allows some data entry as well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am basing this datagrid on Material UI's datagrid component. However, this component has distinction between date format and date-time format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have implemented the valueformatting utilities in my project and the given format for a date measure works very well. However, as all values are in datetime, I am having difficulty determining if a given measure's format is datetime or only date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could do some inferencing on the format string that is given, but I'm curious if there isn't some other way of determining this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 12:35:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3853710#M9483</guid>
      <dc:creator>JSJB</dc:creator>
      <dc:date>2024-04-19T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Telling if date format includes time</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3854695#M9488</link>
      <description>&lt;P&gt;Convert the datetime value to a number and check if it has fractions or not.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 20:05:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3854695#M9488</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-19T20:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Telling if date format includes time</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3858264#M9497</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;, thank you for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your suggestion is good, but I am worried about performance of it. Because, to determine if something is a date format, we would theoretically need to evaluate every single value, would we not? If we check the first value and find it's a date, we can't exclude the possibility that the value after that may be datetime (and so on and so on).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either way, I've thought about it and believe that it's best to consider all date measures passed to be datetime. I will just include an option for users to specify if they want it to be date after the fact (while still using their formatting no matter what it is). I think this gives the end-user more flexibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 07:53:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Telling-if-date-format-includes-time/m-p/3858264#M9497</guid>
      <dc:creator>JSJB</dc:creator>
      <dc:date>2024-04-22T07:53:15Z</dc:date>
    </item>
  </channel>
</rss>

