c# - How can i convert system datetime format to Sql Datetime Format -


enter image description here

enter image description here

i using entity framework database first approach , want move date first object second object first object system.datetime , date format (01-10-2015) want (2015-10-01) second object after converting date in second object second object inset in data base can me

use datetime.parseexact:

datetime temp = datetime.parseexact(date, "yyyy-mm-dd", cultureinfo.invariantculture); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -