Output of DateTime GetPart

  • Last Post 13 February 2020
  • Topic Is Solved
Parth Bakshi posted this 13 February 2020


I am using the DateTime GetPart activity but it is changing the time that is input.

I don't understand why it would do that

Uploading the sceenshots

Attached Files

alphonsa@intellibot.io posted this 13 February 2020

Hi Parth,

 In DateTime-Getpart component it was mentioned as "dd/MM/yyyy HH:MM" where "MM" is for 'months', which is why you are seeing the wrong time as 5:02 instead of 57 as "02" is referring to months but not time.
You need to use "mm" to get the correct result, so change the Format parameter in DateTime component from "dd/MM/yyy HH:MM" to dd/MM/yyy HH:mm"

Thanks & Regards,