I'm trying to insert the current date into an SQL database. I have tried the database field set to datetime and smalldatetime. I have tried using the commands date() and also building the date manually by grabbing month..etc.
What is the easiest way to input a date into a datetime field? I've looked everywhere and I can't believe this to be so much of a pain. I'd rather not leave it as a VAR or numeric field.
Thanks!
What is the easiest way to input a date into a datetime field? I've looked everywhere and I can't believe this to be so much of a pain. I'd rather not leave it as a VAR or numeric field.
Thanks!