<?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: Date formatting JScript</title><link>https://www.infopathdev.com:443/forums/thread/15025.aspx</link><pubDate>Fri, 19 Jan 2007 11:28:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15025</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15025</wfw:commentRss><description>Hi Shilpa&lt;br /&gt;You are great! It works very well.&lt;br /&gt;&lt;br /&gt;Thanks a lot.&lt;br /&gt;Philippe</description></item><item><title>Re: Date formatting JScript</title><link>https://www.infopathdev.com:443/forums/thread/15024.aspx</link><pubDate>Fri, 19 Jan 2007 10:15:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15024</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15024.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15024</wfw:commentRss><description>Hi,&lt;br /&gt;Here's some JScript that will give you the simpler date format from your stored XML date, try this:&lt;br /&gt;&amp;gt; var xdDate = XDocument.DOM.selectSingleNode("//my:Date").text    // i.e: 2004-07-09T00:00:00.0000000+08:00&lt;br /&gt;&amp;gt; var arDate = xdDate.substr(0, 10).split("-");&lt;br /&gt;&amp;gt; var sDate = arDate[1] + "/" + arDate[2] + "/" + arDate[0];&lt;br /&gt;&amp;gt; &lt;br /&gt;&amp;gt; Results in sDate: 07/09/2004&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;</description></item><item><title>Date formatting JScript</title><link>https://www.infopathdev.com:443/forums/thread/13033.aspx</link><pubDate>Fri, 19 Jan 2007 08:11:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13033</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13033</wfw:commentRss><description>Hi,&lt;br /&gt;I have already looked for posts about date formatting, but I haven't found any answer to my problem.&lt;br /&gt;&lt;br /&gt;I have to take a date from a date picker und put this date in an e-mail intro. The date is written in the format "YYYY-MM-DD". I need to display the date in the format "DD-MM-YYYY" Is there an easy way to set by code (JScript) the right format of a date? &lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;Best regards.&lt;br /&gt;Philippe</description></item></channel></rss>