<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Function for working with julian dates</title><link>https://www.infopathdev.com:443/forums/thread/62805.aspx</link><pubDate>Wed, 05 Jan 2011 15:20:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62805</guid><dc:creator>KansasCoder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=62805</wfw:commentRss><description>&lt;p&gt;If interested more on this, including a SQL Server UDF,&amp;nbsp;is available my tiny &lt;a class="" href="http://www.richardaruth.com/" target="_blank"&gt;blog&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Function for working with julian dates</title><link>https://www.infopathdev.com:443/forums/thread/59528.aspx</link><pubDate>Fri, 01 Oct 2010 15:54:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59528</guid><dc:creator>KansasCoder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59528.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59528</wfw:commentRss><description>&lt;p&gt;I figured it out. In case anyone else needs this odd requirement fulfilled here is the way to do it in XSLT:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;(substring-before(substring-after(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;), &amp;quot;T&amp;quot;)) + floor((153 * ((substring-before(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)) + 12 * (floor((14 - substring-before(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)) / 12)) - 3) + 2) / 5) + (substring-before(now(), &amp;quot;-&amp;quot;) + 4800 - (floor((14 - substring-before(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)) / 12))) * 365 + floor((substring-before(now(), &amp;quot;-&amp;quot;) + 4800 - (floor((14 - substring-before(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)) / 12))) / 4) - floor((substring-before(now(), &amp;quot;-&amp;quot;) + 4800 - (floor((14 - substring-before(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)) / 12))) / 100) + floor((substring-before(now(), &amp;quot;-&amp;quot;) + 4800 - (floor((14 - substring-before(substring-after(now(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)) / 12))) / 400) - 32045&lt;/p&gt;
&lt;p&gt;This will round up the ones place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Optimizations are welcome!&lt;/p&gt;</description></item><item><title>XSLT Function to get julian day of the year</title><link>https://www.infopathdev.com:443/forums/thread/59526.aspx</link><pubDate>Fri, 01 Oct 2010 15:52:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59526</guid><dc:creator>KansasCoder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59526</wfw:commentRss><description>&lt;p&gt;I just started in InfoPath yesterday and I&amp;#39;ve nver worked with Julian Dates&amp;nbsp;so bear with me if this is covered all over the web.&amp;nbsp;I wasn&amp;#39;t able to find anything.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am working in InfoPath 2007. I have a field which I need to auto populate with a numeric value with YYYY + day of the year in Julian.&lt;/p&gt;
&lt;p&gt;Is there an xslt&amp;nbsp;function that cane take the current system date as an input and kick back the julian day part of the result?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank yoU!&lt;/p&gt;</description></item></channel></rss>