c# - how to disable displaying time in datatype smalldatetime -


i have textbox should inserting date in dd/mm/yyyy format. can find , use smalldatetime or datetime. pick smalldatetime , data displayed example 01/07/2011 12:00:00 am. codes involved sort out displaying 01/07/2011 (without time)?

sqljobmaster.insertparameters["startdate"].defaultvalue = txtstartdate.text.tostring();

asp.net

start date

use tostring("dd/mm/yyyy");. formatted way want to.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -