Click here to Skip to main content
15,891,431 members
Home / Discussions / Database
   

Database

 
AnswerRe: INSERT QUERY NOT WORKING Pin
PIEBALDconsult25-Dec-10 5:37
mvePIEBALDconsult25-Dec-10 5:37 
GeneralRe: INSERT QUERY NOT WORKING Pin
Luc Pattyn25-Dec-10 6:30
sitebuilderLuc Pattyn25-Dec-10 6:30 
AnswerRe: INSERT QUERY NOT WORKING Pin
Dr.Walt Fair, PE25-Dec-10 7:57
professionalDr.Walt Fair, PE25-Dec-10 7:57 
AnswerRe: INSERT QUERY NOT WORKING Pin
Pete O'Hanlon25-Dec-10 9:20
mvePete O'Hanlon25-Dec-10 9:20 
GeneralRe: INSERT QUERY NOT WORKING Pin
mjawadkhatri26-Dec-10 19:07
mjawadkhatri26-Dec-10 19:07 
GeneralRe: INSERT QUERY NOT WORKING Pin
Pete O'Hanlon27-Dec-10 0:11
mvePete O'Hanlon27-Dec-10 0:11 
GeneralRe: INSERT QUERY NOT WORKING Pin
mjawadkhatri27-Dec-10 0:36
mjawadkhatri27-Dec-10 0:36 
GeneralRe: INSERT QUERY NOT WORKING Pin
Pete O'Hanlon27-Dec-10 9:31
mvePete O'Hanlon27-Dec-10 9:31 
A few thoughts.


  1. Is this field actually a datetime?
  2. Is it a datetime in your application?
  3. What does the format of the date matter?


If the field is a datetime, and it's being passed in as a datetime then you don't need to do anything. Just insert it as it is - the only reason you'd convert it is if you were passing it in as a string, and you should really avoid this and pass it in as a datetime instead. The format of the date is immaterial - just store it in the universal date format; choosing the format is only relevant when you display the date to the user and you should use the users locale to do this.

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


AnswerRe: INSERT QUERY NOT WORKING Pin
thatraja25-Dec-10 16:28
professionalthatraja25-Dec-10 16:28 
GeneralRe: INSERT QUERY NOT WORKING Pin
mjawadkhatri26-Dec-10 19:07
mjawadkhatri26-Dec-10 19:07 
AnswerRe: INSERT QUERY NOT WORKING Pin
Ralf.Bue26-Dec-10 5:33
Ralf.Bue26-Dec-10 5:33 
AnswerRe: INSERT QUERY NOT WORKING Pin
Hiren solanki26-Dec-10 19:09
Hiren solanki26-Dec-10 19:09 
GeneralRe: INSERT QUERY NOT WORKING Pin
Luc Pattyn26-Dec-10 22:49
sitebuilderLuc Pattyn26-Dec-10 22:49 
GeneralRe: INSERT QUERY NOT WORKING Pin
Pete O'Hanlon27-Dec-10 0:17
mvePete O'Hanlon27-Dec-10 0:17 
AnswerRe: INSERT QUERY NOT WORKING Pin
Bernhard Hiller28-Dec-10 2:50
Bernhard Hiller28-Dec-10 2:50 
AnswerRe: INSERT QUERY NOT WORKING Pin
Member 1481254724-Apr-20 11:43
Member 1481254724-Apr-20 11:43 
Questionjoining two tables Pin
Erdinc2723-Dec-10 22:34
Erdinc2723-Dec-10 22:34 
AnswerRe: joining two tables Pin
Estys23-Dec-10 22:58
Estys23-Dec-10 22:58 
GeneralRe: joining two tables Pin
Erdinc2723-Dec-10 23:11
Erdinc2723-Dec-10 23:11 
GeneralRe: joining two tables Pin
Estys23-Dec-10 23:26
Estys23-Dec-10 23:26 
GeneralRe: joining two tables Pin
Erdinc2723-Dec-10 23:51
Erdinc2723-Dec-10 23:51 
GeneralRe: joining two tables Pin
Estys24-Dec-10 0:12
Estys24-Dec-10 0:12 
GeneralRe: joining two tables Pin
Erdinc2724-Dec-10 0:35
Erdinc2724-Dec-10 0:35 
Questionwhere are stored procedures stored. Pin
khurram_shahzad23-Dec-10 20:34
khurram_shahzad23-Dec-10 20:34 
AnswerRe: where are stored procedures stored. Pin
Hiren solanki24-Dec-10 0:38
Hiren solanki24-Dec-10 0:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.