<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/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>How to set system date properties(Target Start &amp;amp; Target finish) dynamically?</title><link>https://www.aras.com/community/f/development/6073/how-to-set-system-date-properties-target-start-target-finish-dynamically</link><description>Hello Team, 
 I am trying to set the project template Target start and target finish property dynamically(date_start_target &amp;amp; date_start_due). 
 I am able to set date in field using following code. 
 
 //Getting today&amp;#39;s date var Todaysdate = new Date</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to set system date properties(Target Start &amp; Target finish) dynamically?</title><link>https://www.aras.com/community/thread/3018?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 03:23:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e39116be-d72c-4751-a8dc-af93e28333e0</guid><dc:creator>Former Member</dc:creator><description>&lt;p&gt;Hi AJ,&lt;/p&gt;
&lt;p&gt;Thank you for your response in short time.&lt;/p&gt;
&lt;p&gt;Yes you are right AJ, aras store date time in&amp;nbsp;&lt;span&gt;yyyy-mm-dd HH:MM:SS this format. I was&amp;nbsp;using dd/MM/yyyy and in that if date or month is less than 10 than it was using single digit i.e. d/M/yyyy. But now I modified my code and just using date yyyy/MM/dd format and its working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is the working code&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;var Currentdate = Todaysdate.getFullYear() + &amp;quot;-&amp;quot;&lt;br /&gt; + ((Todaysdate.getMonth()+1) &amp;lt; 10 ? (&amp;quot;0&amp;quot; + (Todaysdate.getMonth()+1)): (Todaysdate.getMonth()+1)) + &amp;quot;-&amp;quot;&lt;br /&gt; + (Todaysdate.getDate() &amp;lt; 10 ? (&amp;quot;0&amp;quot; + Todaysdate.getDate()) : Todaysdate.getDate());&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With this we can set date field dynamically.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once again thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set system date properties(Target Start &amp; Target finish) dynamically?</title><link>https://www.aras.com/community/thread/3007?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 13:41:44 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f5e26974-2ede-40db-bb02-c7533ce7c5d0</guid><dc:creator>AJ Sebastian</dc:creator><description>&lt;p&gt;Hi Tushar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve looked at some existing project data to determine the proper format of a date property within Innovator. It would appear that we store a date/time value which looks like yyyy-mm-dd (Time). Here is a screenshot showing what the data looks like in SQL.&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/3/pastedimage1560778832973v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please try modifying your method to format the dates to this format.&lt;/p&gt;
&lt;p&gt;AJ&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>