Send calender invite

can anyone tell me why this error come to send calender inivite activity

@Yogita_Gaikwad1

Pass the Start date as
DateTime.Today

image
but error is in start time and StartTime is excel column name

image

you can use cdate(YourString.split(" "c)(0).tostring)

This is because you can’t have the time value in there when converting as seen with 03:30:00

is this right ? it again shows error

no try using cdate(CurrentRow(3).split(" "c)(0))

image

Replace the string with your current row

@Yogita_Gaikwad1

StartTime=DateTime.ParseExact(startDateTimeString, “dd-MM-yyyy HH:mm:ss”, System.Globalization.CultureInfo.InvariantCulture)

You got error because the data in the datatable contains one format like dd-MM-yyyy HH:mm:ss
But in DateT format is dd/MM/yyyy HH:mm:ss . Ensure the both have the same format.

I want to take value from excel column
StartTime

@Yogita_Gaikwad1

StartTime=DateTime.ParseExact(CurrentRow(3).ToString, “dd-MM-yyyy HH:mm:ss”, System.Globalization.CultureInfo.InvariantCulture)

Analyze it as described here:
:ambulance: :sos: [FirstAid] Datatable: Debug & Analysis invalid DateTime Strings / String to DateTime Parsing Issues - News / Tutorials - UiPath Community Forum

@Yogita_Gaikwad1

Change variable type to System.DateTime

image

@Yogita_Gaikwad1

Remove double quotes and reassign double quotes

image

image

grafik
hyphen (-) vs /

image

in excel and StartDateTime i give - but again this error is come

In the above shared LINK to the firstAid it was introduced:

  • Values in Excel are not mandatory in the same format as within the datatable
  • Techniques for analysing within the immediate panel
  • Approaches on how to solve e.g. handling multiple formats in one go

So we recommend

  • got to the firstAid guide
  • execute the different steps

Whenever there are some doubts, then:

  • run some prototype code within the immediate panel
  • share with us details from the debugging panels e.g. datatable content details

Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum