I want to remove datetime values from a field of a table using code.
There is already some value in the datetime field. If I want to make that field empty.
Methods I have tried:
1. RandomTable."Approval Date Time" := 0DT;
RandomTable.Modify;
2. CLEAR(RandomTable."Approval Date Time");
If I try code like below then it updates the field with current datetime but I am unable to clear its value using above two methods.
RandomTable."Approval Date Time" := CURRENTDATETIME;
RandomTable.Modify;
Any help in this regard is highly appreciable.