hi ...
assume computer system date format is mm/dd/yyyy
but the format which SQL is getting dd/mm/yyyy. and from the c# code by sql query i have to convert the date to sql datetime format to insert the date to database table . but when i do this im getting an error as
"invalid date format". and if i get the date as mm/dd/yyyy den also from query i cannot insert it to database table.
what i want t do here is.. i want to insert date do the database table in correct format. how can i do this??
i hope you can understand what im saying here. sorry if its not clear.
assume computer system date format is mm/dd/yyyy
but the format which SQL is getting dd/mm/yyyy. and from the c# code by sql query i have to convert the date to sql datetime format to insert the date to database table . but when i do this im getting an error as
"invalid date format". and if i get the date as mm/dd/yyyy den also from query i cannot insert it to database table.
what i want t do here is.. i want to insert date do the database table in correct format. how can i do this??
i hope you can understand what im saying here. sorry if its not clear.
Comment