<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to get the time from a dateTime</title><link>https://community.appian.com/discussions/f/general/12785/how-to-get-the-time-from-a-datetime</link><description>How do I get the time portion given a dateTime value? For example, given 6/27/2018 10:09 AM EDT, how do I retrieve the 10:09 AM EST portion?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get the time from a dateTime</title><link>https://community.appian.com/thread/57281?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 23:56:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49aa4414-4b5d-496d-925e-fe7d5fb3685b</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Hi erickp,&lt;/p&gt;
&lt;p&gt;In addition to Ashvin&amp;#39;s response you can also use &lt;a href="https://docs.appian.com/suite/help/18.2/fnc_conversion_totime.html"&gt;totime function&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;totime(local(now())) -- Returns in Local Timezone&lt;/p&gt;
&lt;p&gt;totime(now())&amp;nbsp; -- Returns in GMT Timezone&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the time from a dateTime</title><link>https://community.appian.com/thread/57271?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 14:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:811a90cd-ce73-4a13-b7c7-6b0edbdb7e7c</guid><dc:creator>erickp</dc:creator><description>Hi Ashvin, this worked. Thank you!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the time from a dateTime</title><link>https://community.appian.com/thread/57269?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 14:37:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da22ec86-3572-4755-87cd-2585cdc9cdb0</guid><dc:creator>Ashvin Kapur</dc:creator><description>Hi Eric,&lt;br /&gt;
&lt;br /&gt;
Use the following code, where ri!dateTime is your value of 6/27/2018 10:09 AM EDT: cast(8, local(ri!dateTime)). This should return you the time value in local timezone. If you need the raw value, just remove the local() function from the above cast.&lt;br /&gt;
&lt;br /&gt;
Best,&lt;br /&gt;
Ashvin&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>