<?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: How to subtract the Date minus 30 days in JScript</title><link>https://www.infopathdev.com:443/forums/thread/7284.aspx</link><pubDate>Sun, 07 Aug 2005 00:19:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7284</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7284.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7284</wfw:commentRss><description>Hi Eric,&lt;br /&gt;Once you calculate out the number of days just compare to less than 183 and set some validation based on that. Good luck.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to subtract the Date minus 30 days in JScript</title><link>https://www.infopathdev.com:443/forums/thread/7283.aspx</link><pubDate>Sat, 06 Aug 2005 04:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7283</guid><dc:creator>egasber</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7283.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7283</wfw:commentRss><description>OK, I think I am fairly clear on how to insert date information into an infopath form using Jscript.  I am not so clear on how to take a date entered using a date picker, and working with it in Jscript.  What I want to do, is to take a date of birth entered using a date picker field, and run a check to see if the date of birth is less than than 6 months old. &lt;br /&gt;&lt;br /&gt;Any suggestions?&lt;br /&gt;&lt;br /&gt;Eric Gasber</description></item><item><title>Re: How to subtract the Date minus 30 days in JScript</title><link>https://www.infopathdev.com:443/forums/thread/7282.aspx</link><pubDate>Wed, 27 Jul 2005 17:06:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7282</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7282</wfw:commentRss><description>Tatopitta,&lt;br /&gt;&lt;br /&gt;The process I described above does all of those calculations for you. When you create the new 'date object', the adjustments are properly made to account for correct days of month or year, etc.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: How to subtract the Date minus 30 days in JScript</title><link>https://www.infopathdev.com:443/forums/thread/7281.aspx</link><pubDate>Wed, 27 Jul 2005 06:28:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7281</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7281</wfw:commentRss><description>Hi,&lt;br /&gt;my problem is similar to this: I need to sum to a date 6 days but it's quite difficult if you want to take in consideration months with different number of days and also leap years....</description></item><item><title>Re: How to subtract the Date minus 30 days in JScript</title><link>https://www.infopathdev.com:443/forums/thread/7280.aspx</link><pubDate>Tue, 26 Jul 2005 18:35:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7280</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7280.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7280</wfw:commentRss><description>You need to get the date, break it down into its component parts (year, month, date) and then subtract 30 from the date part.&lt;br /&gt;&lt;br /&gt;Then you need to create a new date object using the year, month and date-30 components. This will create a valid date, properly adjusting all component parts for your adjustment.&lt;br /&gt;&lt;br /&gt;Now you can break that new date back down into the form XML wants (yyyy-mm-dd).&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>How to subtract the Date minus 30 days in JScript</title><link>https://www.infopathdev.com:443/forums/thread/4803.aspx</link><pubDate>Tue, 26 Jul 2005 13:48:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4803</guid><dc:creator>yuvaraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4803</wfw:commentRss><description>Hi &lt;br /&gt;&lt;br /&gt;   I wrote the JScript to subtract the number of days from &amp;lt;12-Jan-2005&amp;gt;. I am getting 13/0/2005, but actual result should be 13/12/2004.&lt;br /&gt;&lt;br /&gt;I am using InfoPath and JScript.&lt;br /&gt;&lt;br /&gt;Please provide me the sample code in JScript that, how to subtract the no of days from the date.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp; Regards&lt;br /&gt;C.G.Yuvaraj&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yuvaraj</description></item></channel></rss>