How to insert empty value in datatable date time column

Hi Folks,

When i try to insert a data row to data table, i am not able to leave blank for the column (with data type -> date time). When i assign to “”, i will get the following error --> " Add data row : String was not recognized as a valid DateTime.Couldn’t store <> in variable1 Date Column. Expected type is DateTime."

I tried to search in google, which recommend me to use sqldatetime.null, but I am not able to assign sqldatetime.null in UiPath.

Can you someone shed some light? Thanks in advance

1 Like


Have you tried to use ‘nothing’?

nothing is the Null of VB .NET :wink:

Hope it Helps.



And nothing works perfectly ! thanks