<?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: Calculate age from input date.</title><link>https://www.infopathdev.com:443/forums/thread/56263.aspx</link><pubDate>Mon, 28 Jun 2010 19:04:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56263</guid><dc:creator>MikeW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56263.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=56263</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;Hi.....I found your post now dated 4 years ago.....a simple solution which I need but I get a NaN return.&amp;nbsp; The date of birth is read from a database as the form loads........any suggestions appreciated.&amp;nbsp; Am using 2007&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;Thanks&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;Mike&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate age from input date.</title><link>https://www.infopathdev.com:443/forums/thread/55391.aspx</link><pubDate>Thu, 27 May 2010 18:53:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55391</guid><dc:creator>Tech264</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55391</wfw:commentRss><description>&lt;p&gt;I have a form that has a data connection to a MS Access database and the fields are binded to a Birthdate field and a Age field.&amp;nbsp; I copy and pasted the above formula in the age field and verified it with no errors.&amp;nbsp; When I preview the form I get a NaN message in the age field.&amp;nbsp; Wondering what I&amp;#39;m doing wrong here.&amp;nbsp; Just trying to calculate the age of my patients.&amp;nbsp; Thank you.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Calculate age from input date.</title><link>https://www.infopathdev.com:443/forums/thread/14253.aspx</link><pubDate>Tue, 22 Aug 2006 19:15:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14253</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14253</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by trufooser&lt;/i&gt;&lt;br /&gt;Change the @DOB to the field which contains the date of birth.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;trufooser,&lt;br /&gt;     Thank you for that post. Its just what I needed, and didnt even have to change the data field. One more tool to add to my chest!</description></item><item><title>Re: Calculate age from input date.</title><link>https://www.infopathdev.com:443/forums/thread/14252.aspx</link><pubDate>Wed, 26 Jul 2006 14:35:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14252</guid><dc:creator>trufooser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14252</wfw:commentRss><description>much much easier way to do this (in my humble opinion).  Cut and paste this formula into the default value of the control to store the age.&lt;br /&gt;&lt;br /&gt;floor((number(substring(today(), 1, 4)) + number(substring(today(), 6, 2)) / 12 + number(substring(today(), 9, 2)) / 365.25) - (number(substring(@DOB, 1, 4)) + number(substring(@DOB, 6, 2)) / 12 + number(substring(@DOB, 9, 2)) / 365.25))&lt;br /&gt;&lt;br /&gt;Change the @DOB to the field which contains the date of birth.</description></item><item><title>Re: Calculate age from input date.</title><link>https://www.infopathdev.com:443/forums/thread/14251.aspx</link><pubDate>Wed, 25 Jan 2006 22:12:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14251</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14251</wfw:commentRss><description>That blog is an awesome resource for what you&amp;#39;re trying to accomplish.  Could you post the code that you&amp;#39;ve written so far so we can see where your problems are and get you going in the right direction?&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas</description></item><item><title>Calculate age from input date.</title><link>https://www.infopathdev.com:443/forums/thread/12756.aspx</link><pubDate>Wed, 25 Jan 2006 21:59:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12756</guid><dc:creator>BrownR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12756</wfw:commentRss><description>Hello all,&lt;br /&gt;I'm working on a text box that calculates an age from a date Picker. I want the person to be able to input a date in a Date Picker and automatically calculate the personas age and display it in a text box. The only information that i could find was this one, &lt;a href='http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx' target='_blank' title='http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx'&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx&gt;http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The BLOG does exactlly what i want but im having a heck of a time trying to code it, anotherwords I cant get it to work. Any help is appriciated.</description></item></channel></rss>