How to auto add record creation date/time

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

In my ASPNETDB.MDF database I have a custom table, with a field called
"InsertionDate", which tells the user when the record was created. How do I
auto-populate this field whenever a record is created? Is this field
necessary for this type of info? Thanks
 
If you are creating the record using .NET, just get the system date using
either

Date.Now
or
Date.Today

and convert them to the appropriate format for a date in whatever database
you are using. I think this would be the easiest way, since you will
obviously be inserting other fields as part of the record as well. Good
Luck!
 
Back
Top