I have a date/time field in my database that I want to populate with the date/time of when a checkbox was checked. What would C# code be to do this? I feel like I would do something like
date endingDate; endingDate = DateTime.Now.ToString("MM/dd/yyyy");but I could be way off!