Forum guidelines
AuthorQuestion
Inserting a date format into sql using c#
Posted on: 19 May 2012
Hi, i'm really don't know programming but as i'm preparing for y graduation project i'm building a website. I want to insert a date format into my sql database. My date format is - month(dropdown list), date(textbox) and year(textbox). And i want to insert this date into my sql database whose datatype is datetime. plz tell me how can i insert this date format.
AuthorReply
Re: Inserting a date format into sql using c#
Posted on: 19 May 2012  
Sorry i forgot to mention that I'm using c#
Re: Inserting a date format into sql using c#
Posted on: 19 May 2012  
Hi,
string s=year+"/"+ Month+ "/"+ Day;

& insert this string in date column.

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.