I have a dataset that i am trying to set the default value as the current date and time. I believe that value needs to be a literal. Is there a certain way to do this? Because I am not able to do this using System.DateTime it seems.Any advice would be a great deal of help.
Share
You can set the default value of relevant column as
If you fetch data from a SQL Server database, then you can set the default value using the
GETDATEfunction:Using this code:
When the table is written out as
XML: