{"id":32698,"date":"2022-09-30T15:01:31","date_gmt":"2022-09-30T09:31:31","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=32698"},"modified":"2025-01-16T11:44:25","modified_gmt":"2025-01-16T06:14:25","slug":"how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/","title":{"rendered":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate"},"content":{"rendered":"<p>In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date.<\/p>\n<p><strong><u>Requirement:<\/u><\/strong><br \/>\nWe recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This operation is performed when a new Customer (Account) is to be added to CRM and customer details are to be updated in the CRM.<\/p>\n<p><strong><u>Solution:<\/u><\/strong><br \/>\nTo achieve the above user requirement we designed a <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-automate\/?utm_source=inogic-t-blog&amp;utm_medium=power-automate&amp;utm_campaign=itblog&amp;utm_id=power-automate\" target=\"_blank\" rel=\"noopener\">Power Automate<\/a> flow that triggers the creation and modification of an account. We used\u00a0the <strong>addToTime()<\/strong>\u00a0function for this. On firing this flow, the\u00a0<strong>CreatedOn<\/strong>\u00a0field of the account is read and the\u00a0<strong>addToTime()<\/strong>\u00a0function gets applied to it. The output value gets updated in the \u201cNext follow up\u201d file which is filled on the account form. Please find the below syntax for the function:<\/p>\n<p>Syntax:<\/p>\n<p>addToTime(DATE_TIME,INTERVAL,TIME_UNIT,OUTPUT_DATE_FORMAT)<\/p>\n<p>Where,<\/p>\n<ol>\n<li>DATE_TIME_VALUE: It states the Date Time value in which the time is to be added<\/li>\n<li>INTERVAL_TIME: It represents the numeric number that defines how many seconds, minutes, hours, days, weeks, months, and years are to be added to the date<\/li>\n<li>TIME_UNIT: This defines which time unit (second, minute, hour, day, week, month, year) needs to be added to the existing date time<\/li>\n<li>OUTPUT_DATE_FORMAT: It shows the string date format in which the output of the date is to be seen<\/li>\n<\/ol>\n<p>Example:<\/p>\n<p>Here, we can notice that one week is created on the field of Account entity and displayed on the account entity form:<\/p>\n<p><strong><em>addToTime(triggerOutputs()?[\u2018body\/createdon\u2019],1,\u2019Week\u2019,\u00a0\u2018dd-MM-yyyy\u2019)<\/em><\/strong><\/p>\n<p>Output:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32699\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg\" alt=\"\" width=\"1361\" height=\"655\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg 1361w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in-300x144.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in-1024x493.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in-768x370.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in-660x318.jpeg 660w\" sizes=\"(max-width: 1361px) 100vw, 1361px\" \/><\/p>\n<p>Also, we can subtract second, minute, hour, day, week, month, and year from the existing date-time using the following-<\/p>\n<p><strong><em>subtractFromTime(triggerOutputs()?[&#8216;body\/createdon&#8217;],1,&#8217;Week&#8217;,\u00a0&#8216;dd-MM-yyyy&#8217;)<\/em><\/strong><\/p>\n<p>On firing the Power Automate flow we get the following result-<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-32700\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/2Power-Automate-1.jpeg\" alt=\"\" width=\"1363\" height=\"657\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/2Power-Automate-1.jpeg 1363w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/2Power-Automate-1-300x145.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/2Power-Automate-1-1024x494.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/2Power-Automate-1-768x370.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/2Power-Automate-1-660x318.jpeg 660w\" sizes=\"(max-width: 1363px) 100vw, 1363px\" \/><\/p>\n<p>Conclusion:<\/p>\n<p>Thus, in this manner, using <strong><em>subtractFromTime()<\/em><\/strong> and <strong><em>addToTime<\/em><\/strong> we can add or subtract second, minute, hour, day, week, month, or year time intervals from the existing date.<\/p>\n<p><strong><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\"> <\/strong><strong>Accelerate Your Project Timeline with Our Dedicated Development Team! <\/strong><strong><\/div><\/div><\/strong><\/p>\n<p>Facing Dynamics 365 CRM or Power Platform resource constraints? Whether you need dedicated <a href=\"https:\/\/bit.ly\/3B9qyds\">FTE developers<\/a>, <a href=\"https:\/\/bit.ly\/3XAeBoM\">outsourced development<\/a>, or offshore development centre support, we&#8217;re here to propel your project forward. Leverage our Microsoft Technologies expertise to meet deadlines and surpass expectations. Reach out to us at <a href=\"mailto:crm@inogic.com\">crm@inogic.com<\/a> for project success.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/\">Read More: How to add and subtract date using subtractFromTime() and addToTime()\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,44,1985,2361],"tags":[],"class_list":["post-32698","post","type-post","status-publish","format-standard","hentry","category-microsoft-powerapps","category-power-apps","category-power-automate","category-technical"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1361\" \/>\n\t\t<meta property=\"og:image:height\" content=\"655\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-09-30T09:31:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-01-16T06:14:25+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#blogposting\",\"name\":\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/1Power-Automate-in.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#articleImage\",\"width\":1361,\"height\":655},\"datePublished\":\"2022-09-30T15:01:31+05:30\",\"dateModified\":\"2025-01-16T11:44:25+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#webpage\"},\"articleSection\":\"Microsoft PowerApps, Microsoft PowerApps, Power Automate, Technical\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/#listItem\",\"position\":3,\"name\":\"Microsoft PowerApps\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#listItem\",\"name\":\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#listItem\",\"position\":4,\"name\":\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/microsoft-powerapps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/\",\"name\":\"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"In this blog, let us see how we can add and subtract an \\u2018x\\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2022\\\/09\\\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2022-09-30T15:01:31+05:30\",\"dateModified\":\"2025-01-16T11:44:25+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks","description":"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This","canonical_url":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#blogposting","name":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#articleImage","width":1361,"height":655},"datePublished":"2022-09-30T15:01:31+05:30","dateModified":"2025-01-16T11:44:25+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#webpage"},"articleSection":"Microsoft PowerApps, Microsoft PowerApps, Power Automate, Technical"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/#listItem","name":"Microsoft PowerApps"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/#listItem","position":3,"name":"Microsoft PowerApps","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#listItem","name":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#listItem","position":4,"name":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/#listItem","name":"Microsoft PowerApps"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/","name":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks","description":"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2022-09-30T15:01:31+05:30","dateModified":"2025-01-16T11:44:25+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This","og:url":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg","og:image:width":1361,"og:image:height":655,"article:published_time":"2022-09-30T09:31:31+00:00","article:modified_time":"2025-01-16T06:14:25+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"In this blog, let us see how we can add and subtract an \u2018x\u2019 time unit such as second, minute, hour, day, week, month, and year into and from the existing date. Requirement: We recently had a client requirement in which, the client wanted to calculate the next follow-up date for the current customer. This","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2022\/09\/1Power-Automate-in.jpeg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"32698","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 07:33:28","updated":"2025-07-04 09:45:03","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/\" title=\"Microsoft PowerApps\">Microsoft PowerApps<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"Microsoft PowerApps","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/microsoft-powerapps\/"},{"label":"How to add and subtract date using subtractFromTime() and addToTime() functions within Power Automate","link":"https:\/\/www.inogic.com\/blog\/2022\/09\/how-to-add-and-subtract-date-using-subtractfromtime-and-addtotime-functions-within-power-automate\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/32698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=32698"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/32698\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=32698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=32698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=32698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}