<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94195.aspx</link><pubDate>Fri, 08 Nov 2013 17:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94195</guid><dc:creator>Laura</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94195.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94195</wfw:commentRss><description>Yes, this does work!  Thank you.
I tried the substring-after, already but did not think to nest two functions.</description></item><item><title>Re: Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94194.aspx</link><pubDate>Fri, 08 Nov 2013 17:46:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94194</guid><dc:creator>Laura</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94194</wfw:commentRss><description>i don&amp;#39;t have the ability to change my original datetype, due to the datasource, so this does not work for me, but thanks for your help.</description></item><item><title>Re: Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94191.aspx</link><pubDate>Fri, 08 Nov 2013 17:01:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94191</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94191</wfw:commentRss><description>&lt;p&gt;If the actual value of the string is M/d/yyyy (not just the formatting - XML dates are always yyyy-MM-dd), you can combine&amp;nbsp;a couple of&amp;nbsp;substring-after...&lt;/p&gt;&lt;p&gt;substring-after(&lt;em&gt;&lt;u&gt;datefield&lt;/u&gt;&lt;/em&gt;, &amp;quot;/&amp;quot;) gets you d/yyyy&lt;/p&gt;&lt;p&gt;so:&lt;/p&gt;&lt;p&gt;substring-after(substring-after(&lt;em&gt;&lt;u&gt;datefield&lt;/u&gt;&lt;/em&gt;, &amp;quot;/&amp;quot;), &amp;quot;/&amp;quot;)&lt;/p&gt;&lt;p&gt;should get you just the year I think.&lt;/p&gt;</description></item><item><title>Re: Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94189.aspx</link><pubDate>Fri, 08 Nov 2013 16:43:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94189</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94189</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;so just before I play your date format is d/mm/yyyy or dd/mm/yyyy&lt;/p&gt;&lt;p&gt;i.e. 30/01/2013 if January &lt;/p&gt;&lt;p&gt;or 30/1o/2013&amp;nbsp;if&amp;nbsp;October.&lt;/p&gt;&lt;p&gt;substring(now(), 0, 5) works if your date is based on now().&lt;/p&gt;&lt;p&gt;Also just tested if your original date field is a date control it seems to work too. Check your original date control too. &lt;/p&gt;&lt;p&gt;I&amp;#39;ve seen this where you set your original date field as a text field and changed it to a date field&lt;/p&gt;</description></item><item><title>Re: Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94188.aspx</link><pubDate>Fri, 08 Nov 2013 16:38:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94188</guid><dc:creator>Laura</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94188</wfw:commentRss><description>Thanks for your response, unfortunately it does not work, as it is starting at beginning of string and I need to grab the last 4 digits (2013), so start at the end and move backward 4; and the date is a field populating during rendering.</description></item><item><title>Re: Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94186.aspx</link><pubDate>Fri, 08 Nov 2013 16:14:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94186</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94186.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94186</wfw:commentRss><description>&lt;p&gt;How does substring(Date, 0, 5) work for you?&lt;/p&gt;</description></item><item><title>Equivalent expression in xpath for 'Right' used in Excel?</title><link>https://www.infopathdev.com:443/forums/thread/94181.aspx</link><pubDate>Thu, 07 Nov 2013 21:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94181</guid><dc:creator>Laura</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94181.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94181</wfw:commentRss><description>Hi, I am looking for an expression I can use in xpath that works similar to the function &amp;#39;Right&amp;#39;, which starts at the far right of a string and then moves to the left a designated number of spaces.
What I am trying to do is dispay just the year of a completion date.  But substring(Date,6,4)  did not work for me because the datetype is m/d/yyyy and I cannot change it, so my string is off on certain days.</description></item></channel></rss>