Hello,
I have a program connected to SQL. There are two date fields, Birth_Date and a Death_Date.
We have a program that enters information with these two fields and other numerous fields.
When a user enters a Birth_Date, the value shows (for example) is "03/20/2012 12:00:00 AM".
The Date is correct, but the time is off. I'm having trouble getting the system to show the exact time this data was entered.
Also, for Death_Date, this field can accept NULLS, but when a user leaves this field blank, a default is entered - "1/1/1900 12:00:00 AM".
I'm also having trouble getting the system to accept NULLS. But when there is a date for the Death_Date field, it needs to accept the date and the current time.
strSQL += " , Birth_Date = '" + BirthDate.Text.ToString() + "'";
strSQL += " , Death_Date = '" + DeathDate.Text.ToString() + "'";
Any help and suggestions would be help! Thanks!
I have a program connected to SQL. There are two date fields, Birth_Date and a Death_Date.
We have a program that enters information with these two fields and other numerous fields.
When a user enters a Birth_Date, the value shows (for example) is "03/20/2012 12:00:00 AM".
The Date is correct, but the time is off. I'm having trouble getting the system to show the exact time this data was entered.
Also, for Death_Date, this field can accept NULLS, but when a user leaves this field blank, a default is entered - "1/1/1900 12:00:00 AM".
I'm also having trouble getting the system to accept NULLS. But when there is a date for the Death_Date field, it needs to accept the date and the current time.
strSQL += " , Birth_Date = '" + BirthDate.Text.ToString() + "'";
strSQL += " , Death_Date = '" + DeathDate.Text.ToString() + "'";
Any help and suggestions would be help! Thanks!