How to Calculate the Date Difference using Power Automate

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 60

  • @Genkijapchin
    @Genkijapchin 3 роки тому +4

    Finally a simple, concise explanation of how to do this! Thanks so much.

  • @ramachandranjayaraman4901
    @ramachandranjayaraman4901 7 місяців тому

    Explanation is very clear. I have different scenario - I have coupon issue column in share point (which is updated manually with the issued date) and when emp apply for again using Form, Power automation shld check whether the last coupon issued is greater than 6 months from the current applied date, if yes create an new entry and if no reject email.

  • @CarlosSolisNow
    @CarlosSolisNow 2 роки тому +1

    Thank you for this. Having the code in the comments made it so much better and easier to do. Greate work.

  • @mirzatanjic
    @mirzatanjic 5 місяців тому +1

    Thank you. How to calculate duration between two dates in format Y M D ?

    • @KeaPointTechTips
      @KeaPointTechTips  5 місяців тому

      If I remember correctly, this video do calculate the date difference in YYMMDD format.

  • @jespernielsen755
    @jespernielsen755 28 днів тому

    Thank you very much for this video. It's brilliant. It has really helped me a lot!

    • @KeaPointTechTips
      @KeaPointTechTips  28 днів тому

      I'm so glad to hear that you found the video helpful! Your support means a lot to me!

  • @ManojKumar-zn2gf
    @ManojKumar-zn2gf Рік тому

    Hello, Thanks for the beautiful video! I need to get clarity for a question from you. I have an Excel file with a couple of columns, kept the file in SharePoint location, and with the help of list rows present in a table operation trying to read data from the Excel file with date format as "ISO 061", the output looks like "Joining Date": "2021-01-18T00:00:00.000Z" but I need only the date and month from above value Expected output - "01-18". How do I need to specify the condition in ''Enter custom Value" to get the desired output

  • @jaytricegarrett880
    @jaytricegarrett880 Місяць тому +1

    Hello - I have a share point list that has a date column. I want to look at that date column and if any dates are more than 30 days from today I want it to update an item in my share point list.

    • @KeaPointTechTips
      @KeaPointTechTips  Місяць тому

      Write a schedule flow, use, get items action in flow with filter addDays(utcNow(), -30, 'dd-mm-yyyy') , you will only get the records more than a month old. You can then loop through them and update items.

  • @baldeepbirak
    @baldeepbirak 4 роки тому +1

    Useful video. Thank you

  • @shanyinkai6688
    @shanyinkai6688 2 роки тому +1

    Great work! Now we got number of days for each single item, I tried to build a summary table and send out via email to user, however i am fail to add this number of days in it. Do you happen have any idea? Many thanks!

    • @KeaPointTechTips
      @KeaPointTechTips  2 роки тому

      You need to build HTML table using power automate.

  • @patriciaadams7637
    @patriciaadams7637 3 роки тому +1

    Very helpful, thank you! I was able to do this and instead of an email as the last action, I created a new list and had the calculated days inserted in the list. I do have a question. After I calculated how many days since an item was created, I would like to calculate how many days since an item was approved. Suggestions on how to do that? Thank you!

    • @KeaPointTechTips
      @KeaPointTechTips  3 роки тому +1

      Hi Patricia, I would create a approval datetime column in the list. In the approval flow I would update this approval date column with flow approval time. Once you have the approval date in the list, you can use same logic in the flow to calculate the today's and approval date difference. I hope this helps you.

  • @gooli121
    @gooli121 Рік тому

    Thank you verymuch- i got a challange- Since i have many items in SP list- i prefer to get one email with HTML table along with calculation. how can we do it... thanks in advance.

  • @EdVasquez-w5f
    @EdVasquez-w5f Рік тому

    How do I set a condition where, if submission time is less than or equal to 3pm, it will trigger a different set of emails if yes or no?

  • @HumaidahFulyani-li3em
    @HumaidahFulyani-li3em 4 місяці тому +1

    Hi,
    I got this error message, please advice
    The variable 'varPRDaySinceSubmitted' of type 'Boolean' cannot be initialized or updated with value of type 'Integer'. The variable 'varPRDaySinceSubmitted' only supports values of types 'Boolean'.

    • @KeaPointTechTips
      @KeaPointTechTips  4 місяці тому

      This is because the varPRDaySinceSubmitted variable is of type Boolean, change it to Integer type in the variable initialization action

  • @jamunaranihs2594
    @jamunaranihs2594 2 роки тому +1

    Hi, how to calculate difference between dates in two years, like 11/20/2021 and 1/18/2022

    • @KeaPointTechTips
      @KeaPointTechTips  2 роки тому

      The formula in the video work with dates in different years. Give it a try.

  • @karukarthi2609
    @karukarthi2609 4 роки тому

    Thanks for the video.. Really useful and one more query here is, we always need to compare with modified column rathen going with created column.. Else as you said, we can use any other columns which are date type format.

    • @KeaPointTechTips
      @KeaPointTechTips  4 роки тому

      Hi Karu, glad to know that you liked it. Yes, this should work for any value of date type

  • @sumanpreetkaur2994
    @sumanpreetkaur2994 2 роки тому +1

    How would I edit the formula if I already have due date and want to calculate between the due date and the submission date?

    • @KeaPointTechTips
      @KeaPointTechTips  2 роки тому

      Just follow this video and replace the date columns accordingly. You can use any column names as long as they are in date time format.

    • @sumanpreetkaur2994
      @sumanpreetkaur2994 2 роки тому

      @@KeaPointTechTips Thanks so much!!

  • @lifechanger4950
    @lifechanger4950 2 роки тому

    Hello. Here is error like after typing "846000000000". It shows '16-55-2021 for provided tick value. Can i know how to fixed it

  • @Opikateur64
    @Opikateur64 3 роки тому

    Hi, Thanks for this tuto :)
    I've set my flow thanks to your video but I've found some differences between 2 dates. After checking your example from 17/08/2020 to 09/11/2020 I count 25 days but not 24. Also, my flow find 6 days between 22/04/2021 (thursday) and 29/04/2021 (thursday) instead of 7. Do you know how to fix this issue ?
    Br,
    Gaultier

    • @KeaPointTechTips
      @KeaPointTechTips  3 роки тому +1

      This example tell you the days gab between 2 dates without including the start and end dates. You can always add a day to end date in the formula to include it for the calculation.

    • @Opikateur64
      @Opikateur64 3 роки тому

      @@KeaPointTechTips thanks for your answer. I'll do that :)

    • @danspencer1015
      @danspencer1015 2 роки тому

      @@KeaPointTechTips What would the expression look like to add 1 day onto the formula above? Thanks

  • @mrshariff07
    @mrshariff07 2 роки тому

    Thank you soo much🖤

  • @bairikrishna0808
    @bairikrishna0808 3 роки тому

    Really a good video.. I have been looking for this for a while now. Can we use the same expression if the source is excel?

  • @mih_a
    @mih_a 3 роки тому +1

    Thank you!!

  • @sunithajs6043
    @sunithajs6043 7 місяців тому

    what is the difference between get items and get item in the flow

    • @KeaPointTechTips
      @KeaPointTechTips  6 місяців тому

      Get Items retrieve all items from a list, whereas get item will get you single item based on specified item id. I hope it make sense.

  • @erwinarguello
    @erwinarguello 4 роки тому

    Niceeeee! Ticks for months? Number of months between dates, ty.

    • @KeaPointTechTips
      @KeaPointTechTips  4 роки тому +1

      Once you get number of days, you can divide by 30 to get number of months.

  • @shaikzuber7945
    @shaikzuber7945 3 роки тому

    How to Calculate Time when status column changes from Pending to Approved

    • @KeaPointTechTips
      @KeaPointTechTips  3 роки тому +1

      You can save timestamp in the list when a column is changed and then use this tutorial to calculate difference between two dates.

  • @gyanibaba5189
    @gyanibaba5189 5 місяців тому

    Hi, can we send all record age in one email using Html table

    • @KeaPointTechTips
      @KeaPointTechTips  5 місяців тому

      Yes, you can, you need to loop through the source, calculate days different and log each item in a Json object, you can then parse Json, create HTML table and email the table.

  • @crystalhowat4617
    @crystalhowat4617 3 роки тому

    How many ticks for hours?

    • @KeaPointTechTips
      @KeaPointTechTips  3 роки тому

      It is listed in the video description
      Ticks per hour 36,000,000,000

  • @charliebaxter1840
    @charliebaxter1840 3 роки тому

    I keep getting an "enter a valid integer" error when I try to run this with data from planner instead of sharepoint. Any ideas?