DATETIME DATA TYPE

Anurag Chaurasia

Total Post:16

Points:112
Posted by  Anurag Chaurasia
 1449  View(s)
Ratings:
Rate this:
How to insert data into a datetime type column by using sql.................
  1. Uttam Misra

    Post:125

    Points:897
    Re: Datetime data type

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

    You can also use getdate() function.



Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!