<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: add day to a date field in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620537#M192316</link>
    <description>&lt;P&gt;On Incident table&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 12:32:34 GMT</pubDate>
    <dc:creator>Sowmya20</dc:creator>
    <dc:date>2020-07-16T12:32:34Z</dc:date>
    <item>
      <title>add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620520#M192299</link>
      <description>&lt;P&gt;I have two field "MI service restore(u_time_when_the_resolved_notif) and MI action due date(u_mi_action_due_date). I want to add 7 days to MI service restore and display in MI action due date.&lt;/P&gt;
&lt;P&gt;I have written Business rule for this but it's not&amp;nbsp; displaying the date.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;P&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var aft= gdt.addDays(7);&lt;BR /&gt; gs.addInfoMessage("time after adding date: "+ aft);&lt;/P&gt;
&lt;P&gt;current.u_mi_action_due_date = gdt.getDate();&lt;/P&gt;
&lt;P&gt;current.update();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me on this.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sowmya&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:25:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620520#M192299</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T11:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620521#M192300</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Refer below link,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=8b48cbaddb1cdbc01dcaf3231f961928" rel="nofollow"&gt;https://community.servicenow.com/community?id=community_question&amp;amp;sys_id=8b48cbaddb1cdbc01dcaf3231f961928&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:35:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620521#M192300</guid>
      <dc:creator>Tanushree Doiph</dc:creator>
      <dc:date>2020-07-16T11:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620522#M192301</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Sowmya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below code for adding days:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="kw2"&gt;&amp;nbsp;var&lt;/SPAN&gt;&amp;nbsp;gdt&amp;nbsp;&lt;SPAN class="sy0"&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="kw2"&gt;new&lt;/SPAN&gt;&amp;nbsp;GlideDateTime&lt;SPAN class="br0"&gt;(&lt;/SPAN&gt;&lt;SPAN class="br0"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sy0"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;gdt.&lt;SPAN class="me1"&gt;addDaysLocalTime&lt;/SPAN&gt;&lt;SPAN class="br0"&gt;(30&lt;/SPAN&gt;&lt;SPAN class="br0"&gt;)&lt;/SPAN&gt;&lt;SPAN class="sy0"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;current.u_mi_action_due_date&amp;nbsp;= gdt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:addDays() is a deprecated method so try using&amp;nbsp;&lt;SPAN class="me1"&gt;addDaysLocalTime&lt;/SPAN&gt;&lt;SPAN class="br0"&gt;(&lt;/SPAN&gt;&lt;SPAN class="br0"&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="br0"&gt;else try like this in Background script:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var nd = new GlideDateTime(gs.nowDateTime());&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;gs.print('current date is :'+nd);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var fd = new GlideDateTime(nd);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;fd.addDays(30);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;gs.print('future date will be:'+fd);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I hope this will help you.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Mark &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Correct if this solves your issue and also mark &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Helpful if you &lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;find my response useful to you and help others to find information faster.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Tejas&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:41:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620522#M192301</guid>
      <dc:creator>Tejas Tamboli</dc:creator>
      <dc:date>2020-07-16T11:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620523#M192302</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I dont know if you try this:&lt;/P&gt;
&lt;P&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;gdt.addDays(7);&lt;/STRONG&gt;&lt;BR /&gt;current.u_mi_action_due_date = gdt.getDate();&lt;/P&gt;
&lt;P&gt;current.update();&lt;/P&gt;
&lt;P&gt;ASSUMING&amp;nbsp;u_mi_action_due_date&amp;nbsp; is a date field,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:42:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620523#M192302</guid>
      <dc:creator>Ashutosh Munot1</dc:creator>
      <dc:date>2020-07-16T11:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620524#M192303</link>
      <description>&lt;P&gt;Make sure business rule is before business rule. also avoid using current.update().&lt;/P&gt;
&lt;P&gt;Avoid addDays() and use either&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;addDaysLocalTime&lt;/STRONG&gt;&lt;/EM&gt;() or&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;addDaysUTC&lt;/STRONG&gt;&lt;/EM&gt;()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your updated script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif); 

gdt.addDaysLocalTime(7);
gs.addInfoMessage("time after adding date: "+ gdt.addDaysLocalTime(7));

current.u_mi_action_due_date = gdt.getLocalDate();

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doc link for further details.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/reference/api/orlando/server_legacy/c_GlideDateTimeAPI#r_GDT-addDays_N" rel="nofollow"&gt;https://developer.servicenow.com/dev.do#!/reference/api/orlando/server_legacy/c_GlideDateTimeAPI#r_GDT-addDays_N&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:51:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620524#M192303</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-07-16T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620525#M192304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried like this but still it's not displaying the date.&lt;/P&gt;
&lt;P&gt;below is the code:&lt;/P&gt;
&lt;P&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif);&lt;/P&gt;
&lt;P&gt;var aft=gdt.addDaysLocalTime(30);&lt;BR /&gt;gs.addInfoMessage("time after adding date "+ aft);&lt;BR /&gt;current.u_mi_action_due_date = gdt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sowmya&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:51:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620525#M192304</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620526#M192305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have tried above script. But still not displaying.&lt;/P&gt;
&lt;P&gt;Both the fields are&amp;nbsp;glide_date_time type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sowmya&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:53:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620526#M192305</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T11:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620527#M192306</link>
      <description>&lt;P&gt;HI,&lt;BR /&gt;&lt;BR /&gt;If they are glide date time then use this:&lt;/P&gt;
&lt;P&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;gdt.addDays(7);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;current.u_mi_action_due_date = gdt.getDisplayValue();&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;current.update();&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:57:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620527#M192306</guid>
      <dc:creator>Ashutosh Munot1</dc:creator>
      <dc:date>2020-07-16T11:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620528#M192307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have tried above script and changed to before insert and update.&lt;/P&gt;
&lt;P&gt;then I got this message : time after adding date: undefined&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sowmya&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:59:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620528#M192307</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620529#M192308</link>
      <description>&lt;P&gt;ah my bad. missed on line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif); 

gdt.addDaysLocalTime(7);
gs.addInfoMessage("time after adding date: "+ gdt.getDisplayValue());

current.u_mi_action_due_date = gdt.getLocalDate();  // if its date time type field use gdt.getDisplayValue()&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:01:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620529#M192308</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-07-16T12:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620530#M192309</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37568iA781D149D85D89B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I have received message like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;"time after adding date: 2020-07-25 16:40:53"&lt;/P&gt;
&lt;P&gt;But it's not adding the date to "due date" field&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sowmya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:09:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620530#M192309</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620531#M192310</link>
      <description>&lt;P&gt;just confirming , have you used below line ? if its coming in info message then it should also set the same value. i am assuming you are not using current.update() in your business rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="cm-comment-text cm-comment-view-mode ng-scope"&gt;
&lt;DIV class="cm-comment-body"&gt;
&lt;DIV class="cm-comment-text-info"&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;current.u_mi_action_due_date = gdt.getDisplayValue();  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="cm-attachments-body"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="cm-comment-footer cm-common-light-color ng-scope"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:12:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620531#M192310</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-07-16T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620532#M192311</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try like this&lt;/P&gt;
&lt;P&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif);&lt;/P&gt;
&lt;P&gt;gdt.addDaysLocalTime(30);&lt;/P&gt;
&lt;P&gt;var aft=gdt.getDisplayValue();&lt;/P&gt;
&lt;P&gt;gs.addInfoMessage("time after adding date "+ aft);&lt;/P&gt;
&lt;P&gt;current.u_mi_action_due_date = aft;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tejas&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:14:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620532#M192311</guid>
      <dc:creator>Tejas Tamboli</dc:creator>
      <dc:date>2020-07-16T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620533#M192312</link>
      <description>&lt;P&gt;also check any other script exist into your system to set the date time into&amp;nbsp;u_mi_action_due_date field ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are you sure the field name is correct ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you add some screenshot ?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:16:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620533#M192312</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-07-16T12:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620534#M192313</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:17:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620534#M192313</guid>
      <dc:creator>Ashutosh Munot1</dc:creator>
      <dc:date>2020-07-16T12:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620535#M192314</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have removed current.update() line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And one more thing is that "MI action due date" is on Incident task table.&lt;/P&gt;
&lt;P&gt;How to display that date to "MI action due date" for incident task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Both the field type is "glide_date_time".&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:28:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620535#M192314</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T12:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620536#M192315</link>
      <description>&lt;P&gt;so your business rule is running on incident task table or incident table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:30:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620536#M192315</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-07-16T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620537#M192316</link>
      <description>&lt;P&gt;On Incident table&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:32:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620537#M192316</guid>
      <dc:creator>Sowmya20</dc:creator>
      <dc:date>2020-07-16T12:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620538#M192317</link>
      <description>&lt;P&gt;HI,&lt;BR /&gt;&lt;BR /&gt;I tried my script on one incident form and it works.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As Harsh said please check the field name.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:38:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620538#M192317</guid>
      <dc:creator>Ashutosh Munot1</dc:creator>
      <dc:date>2020-07-16T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: add day to a date field</title>
      <link>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620539#M192318</link>
      <description>&lt;P&gt;ok then you have to do glide record here to update the column on incident task table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;var gdt = new GlideDateTime(current.u_time_when_the_resolved_notif);

gdt.addDaysLocalTime(7);
gs.addInfoMessage("time after adding date: "+ gdt.getDisplayValue());

var gr = new GlideRecord('incident_task');

gr.addQuery('incident',current.sys_id); // make sure the relationship field is parent or incident.

gr.query();

while(gr.next()){

gr.&amp;lt;your date field on incident task &amp;gt; = gdt.getDisplayValue();

gr.update();

}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:41:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/add-day-to-a-date-field/m-p/620539#M192318</guid>
      <dc:creator>hvrdhn88</dc:creator>
      <dc:date>2020-07-16T12:41:01Z</dc:date>
    </item>
  </channel>
</rss>

