<?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>getlastlogindatetime</title><link>https://community.appian.com/discussions/f/general/30756/getlastlogindatetime</link><description>Hi All 
 I am using getLastLoginDateTime function which is in the below plugin 
 
 But facing weird issue. 
 below are the code snippet 
 
 
 
 
 It is working fine without typecase but while typecast it is showing error Note :- loginDateTime has date</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: getlastlogindatetime</title><link>https://community.appian.com/thread/122426?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 09:29:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ffd3e45-2ae4-417e-887c-02e03c572238</guid><dc:creator>yogeshc213832</dc:creator><description>&lt;p&gt;yes I checked those users who login after 1 pm , I am facing issue on those users only&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getlastlogindatetime</title><link>https://community.appian.com/thread/122403?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 21:00:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4adb41eb-e3cc-4d1b-b27c-9520eca87328</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;d suggest reporting this as a bug to the plugin&amp;#39;s author.&amp;nbsp; In the meantime, something I&amp;#39;ve done myself in the past to fix a &amp;quot;wonky&amp;quot; datetime value returned by a plug-in like this, was to build a custom expression rule that can consume the incorrect text value and parse it to return the correct dateTime value - it&amp;#39;s a lot easier to test that way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getlastlogindatetime</title><link>https://community.appian.com/thread/122401?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 19:02:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ed4eded-f9ee-439c-aee8-bc93fccb8915</guid><dc:creator>jagjots3791</dc:creator><description>&lt;p&gt;Problem is with what&amp;nbsp;getlastlogindatetime() function is returning. Its returning time in 24 hour format but for some reason, it is appending AM/PM after each result as 24 hour time format is represented without AM/PM.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why it couldn&amp;#39;t be converted to datetime.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;So, it will throw error if user&amp;#39;s login time is at or after 1 pm.&amp;nbsp;One solution would be to convert 24 hour time to 12 hour.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getlastlogindatetime</title><link>https://community.appian.com/thread/122392?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 16:58:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eea661d0-7c18-42fa-bea4-7dc04e4a38ed</guid><dc:creator>Simbu Ramani</dc:creator><description>&lt;p&gt;Yogesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From your screenshots, it seems like the function is returning the text string and your loginDate field in the CDT is expecting the data and time. Can you please make sure the resultant of your expression be date and time? Let&amp;#39;s say convert the resultant to date and time and try the same?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>