Date Type error, Date with year 1999 is not working but working on date with year 2000

@Anelisa_Bolosha1

As per error inceptiondate is empty cna you try to print and check if it is empty

cheers


I want to convert this date format returned by ‘inceptiondate’ on the message box to a date format : dd/MM/yyyy

@Anelisa_Bolosha1

As per message box this is what you need to use

inceptiondt2 = Datetime.ParseExact(inceptiondate,"MM/dd/yyyy HH:mm:ss",System.Globalization.CultureInfo.InvariantCulture).ToString("MM/dd/yyyy")

cheers

1 Like

Error is gone now but is it possible to have it in this format: dd/MM/yyyy

@Anelisa_Bolosha1

This is how you need to change

inceptiondt2 = Datetime.ParseExact(inceptiondate,"MM/dd/yyyy HH:mm:ss",System.Globalization.CultureInfo.InvariantCulture).ToString("/dd/MM/yyyy")

basically need to change value inside tostring as you need

Hope this helps and clears your issue

cheers

Oh no I changed it ,it worked thank you all for your assistance…

Cheers

1 Like

Now I see and understand, thank you lots :blush: :saluting_face:

1 Like

Happy Automation :slight_smile:

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.