<?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 difference between dates in months, given today&amp;#39;s date and a user selected date</title><link>https://community.appian.com/discussions/f/data/12938/how-to-get-difference-between-dates-in-months-given-today-s-date-and-a-user-selected-date</link><description>when user selects a date, need to compare it with today() and get difference between years. Like difference between 2018 and 2020 is 24 months. 
 Please share a recipe. I understand if we need to use existing date time functions but would prefer a recipe</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get difference between dates in months, given today's date and a user selected date</title><link>https://community.appian.com/thread/71701?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 13:02:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:acb41189-acd9-47f8-bc4b-45861bea3ee7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure about that plug-in, but it should be trivially easy to write an expression rule that does this, as far as I know.&amp;nbsp; Check out the function&amp;nbsp;&lt;em&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/fnc_scripting_userday.html"&gt;userDay()&lt;/a&gt;&lt;/em&gt; (and maybe also&amp;nbsp;&lt;em&gt;userDayOfYear()&lt;/em&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get difference between dates in months, given today's date and a user selected date</title><link>https://community.appian.com/thread/71693?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 00:25:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5a93cbb-5564-4a65-9070-84bf5738a5fe</guid><dc:creator>lesli.cowan</dc:creator><description>&lt;p&gt;These look like useful functions, but&amp;nbsp;is there any way to use them to tell if&amp;nbsp;2 date-times are in the same day in&amp;nbsp;the user&amp;#39;s time zone?&amp;nbsp; Or do they use GMT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get difference between dates in months, given today's date and a user selected date</title><link>https://community.appian.com/thread/58147?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 17:00:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:735017a1-ac41-46e9-a703-25c9ad71dd92</guid><dc:creator>Dmitry S</dc:creator><description>You could install and use this plugin: &lt;a href="https://community.appian.com/b/appmarket/posts/date-and-time-utilities"&gt;community.appian.com/.../date-and-time-utilities&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It has a lot of useful functions to handle different cases when working with dates and times.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get difference between dates in months, given today's date and a user selected date</title><link>https://community.appian.com/thread/58144?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 14:25:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96bb3235-7e64-4bc1-9ea8-b4abb282c3a1</guid><dc:creator>Carlos Santander</dc:creator><description>Do you mean the year of the date the user entered and today&amp;#39;s year? That would be 12*(year(ri!userDate)-year(today())).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>