<?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>Fetching month from Date Time</title><link>https://community.appian.com/discussions/f/rules/12733/fetching-month-from-date-time</link><description>I&amp;#39;m trying to retrieve just the month from a value I have saved as a DateTime data type.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/57686?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 06:02:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cfe7788-78d2-4431-ad03-540b8d71123c</guid><dc:creator>aratim</dc:creator><description>You can use the function month(ri!dateTime). It will return the month from given input dateTime.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/57669?ContentTypeID=1</link><pubDate>Sat, 07 Jul 2018 10:32:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa47b28f-8895-42e5-acce-8cd85070f427</guid><dc:creator>surendrab0001</dc:creator><description>Hi,&lt;br /&gt;
Below code may help to u&lt;br /&gt;
month(datetime(2011,2,28,12,0,0))&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Surendra&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/57668?ContentTypeID=1</link><pubDate>Sat, 07 Jul 2018 07:58:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aed5e35a-8f9b-46cc-8ff6-44addaa27385</guid><dc:creator>khemrajs0002</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;You can use the following as per your requirement:-&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;text(ri!date,&amp;quot;m&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*Return month in numeric format that can be either one or two digit. (Eg. &amp;quot;7&amp;quot;)*/&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;text(ri!date,&amp;quot;mm&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*Return month in numeric format that would two digit. (Eg. &amp;quot;07&amp;quot;)*/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;text(ri!date,&amp;quot;mmm&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*Return month in text format that can would be 3 letter text. (Eg.&amp;quot; Jan&amp;quot;)*/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;text(ri!date,&amp;quot;mmmm&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*Return month in text format that can would be name of month. (Eg. &amp;quot;January&amp;quot;)*/&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56962?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 06:05:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e81df8b9-7bc5-4473-b27b-e57fc33684f9</guid><dc:creator>Shubham Aware</dc:creator><description>Hi &lt;a href="/members/isiomam"&gt;isiomam&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
If you want month of particular DateTime variable you can simply use month(ri!dateTime).&lt;br /&gt;
If you want current month use month(now()).&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Shubham&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56956?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 05:41:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a12d93bc-6704-4925-8bf4-cc038c04af08</guid><dc:creator>gurdeeps</dc:creator><description>Hi, Use month(now()) function, this should resolve your problem.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56953?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 05:06:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:694fecc9-c3c2-44d8-ba4f-28b23c95b2f3</guid><dc:creator>Damodhar</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
You can use month(now()) for that.&lt;br /&gt;
&lt;br /&gt;
Regards.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56952?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 05:06:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:196351b7-4e15-460a-90f1-ca5cdfb49585</guid><dc:creator>Damodhar</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
You can use month(now()) for that.&lt;br /&gt;
&lt;br /&gt;
Regards.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56951?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 05:04:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1936d4fe-a03d-4df4-be58-182fdec39461</guid><dc:creator>Anuya Girwalkar</dc:creator><description>You can use month() to get the month value.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56949?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 04:18:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3947714f-da42-476d-8634-71f060b02b39</guid><dc:creator>Aswini </dc:creator><description>&lt;p&gt;month() ---&amp;gt; Returns the month from the specified date.&lt;br /&gt; For Example :&lt;br /&gt;month(datetime(2011, 12, 13, 12, 0, 0)) returns 12&lt;br /&gt; month(ri!datetime) returns month(integer)&lt;br /&gt; &lt;br /&gt; Hope this helpful&lt;br /&gt; &lt;br /&gt; Regards&lt;br /&gt; Aswini&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56945?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 03:02:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c08e0a0-73fe-4d7e-8177-f1273d8ffbd6</guid><dc:creator>Venkatesh Suram</dc:creator><description>&lt;a href="/members/isiomam"&gt;isiomam&lt;/a&gt; : As suggested by  &lt;a href="/members/chandhinir"&gt;chandhinir&lt;/a&gt; , We can get the month by using month() function .&lt;br /&gt;
&lt;br /&gt;
month(ri!dateTime).&lt;br /&gt;
&lt;br /&gt;
Thanks!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching month from Date Time</title><link>https://community.appian.com/thread/56943?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 01:32:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5876cc45-cf0e-4f13-a33c-dda8090a7c6b</guid><dc:creator>chandhinir</dc:creator><description>can use month(now()) to get the month&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>