Datetime data type

Total Post:16


 1884  View(s)
Rate this:
How to insert data into a datetime type column by using sql.................
  1. Re: Datetime data type

    insert into tableName values('" + DateTime.Now.ToString("yyyy-MM-dd") + "');

    You can also use getdate() function.

      Modified On Mar-29-2018 04:16:22 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.