Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to work with generic date format Pin
PIEBALDconsult1-Aug-11 19:07
mvePIEBALDconsult1-Aug-11 19:07 
AnswerRe: How to work with generic date format [modified] Pin
Luc Pattyn1-Aug-11 15:21
sitebuilderLuc Pattyn1-Aug-11 15:21 
GeneralRe: How to work with generic date format Pin
Peter_in_27801-Aug-11 16:30
professionalPeter_in_27801-Aug-11 16:30 
GeneralRe: How to work with generic date format Pin
Luc Pattyn1-Aug-11 16:55
sitebuilderLuc Pattyn1-Aug-11 16:55 
GeneralRe: How to work with generic date format Pin
PIEBALDconsult1-Aug-11 19:08
mvePIEBALDconsult1-Aug-11 19:08 
GeneralRe: How to work with generic date format Pin
Luc Pattyn2-Aug-11 1:34
sitebuilderLuc Pattyn2-Aug-11 1:34 
GeneralRe: How to work with generic date format Pin
PIEBALDconsult2-Aug-11 3:12
mvePIEBALDconsult2-Aug-11 3:12 
AnswerRe: How to work with generic date format Pin
Luc Pattyn2-Aug-11 16:58
sitebuilderLuc Pattyn2-Aug-11 16:58 
Thanks Piebald, great idea of using interfaces here, it allowed me to reduce my code a lot.

I got it all working with a single IDbConnection and IDbCommand (serving either OleDb/Access or Sql/SQLServer), except for one issue: Access doesn't want to store DateTime values in Date/Time fields when using IDbCommand and CreateParameter, not even when I force the field type (with result.DBType, which is generic, not OleDb-specific). I'm getting a generic message about a criteria datatype mismatch, and all Google turns up is adding or removing quotes, which I don't have and don't want.

So I reverted to using cmd.Parameters.Add(name,type).Value=val which is target specific but works fine.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: How to work with generic date format Pin
PIEBALDconsult2-Aug-11 17:47
mvePIEBALDconsult2-Aug-11 17:47 
GeneralRe: How to work with generic date format Pin
PIEBALDconsult2-Aug-11 18:39
mvePIEBALDconsult2-Aug-11 18:39 
AnswerRe: How to work with generic date format Pin
Luc Pattyn3-Aug-11 4:41
sitebuilderLuc Pattyn3-Aug-11 4:41 
GeneralRe: How to work with generic date format Pin
PIEBALDconsult3-Aug-11 16:22
mvePIEBALDconsult3-Aug-11 16:22 
GeneralRe: How to work with generic date format Pin
Luc Pattyn3-Aug-11 16:59
sitebuilderLuc Pattyn3-Aug-11 16:59 
GeneralRe: How to work with generic date format [modified] Pin
PIEBALDconsult3-Aug-11 18:44
mvePIEBALDconsult3-Aug-11 18:44 
GeneralRe: How to work with generic date format Pin
Richard Deeming11-Jan-12 5:44
mveRichard Deeming11-Jan-12 5:44 
QuestionRegEx with < or > Pin
econner1-Aug-11 9:55
econner1-Aug-11 9:55 
AnswerRe: RegEx with Pin
PIEBALDconsult1-Aug-11 14:45
mvePIEBALDconsult1-Aug-11 14:45 
AnswerRe: RegEx with Pin
Peter_in_27801-Aug-11 17:18
professionalPeter_in_27801-Aug-11 17:18 
GeneralRe: RegEx with Pin
OriginalGriff1-Aug-11 21:31
mveOriginalGriff1-Aug-11 21:31 
GeneralRe: RegEx with Pin
econner3-Aug-11 4:38
econner3-Aug-11 4:38 
GeneralRe: RegEx with Pin
Peter_in_27803-Aug-11 13:04
professionalPeter_in_27803-Aug-11 13:04 
GeneralRe: RegEx with Pin
econner3-Aug-11 13:27
econner3-Aug-11 13:27 
GeneralRe: RegEx with [modified] Pin
Peter_in_27803-Aug-11 15:11
professionalPeter_in_27803-Aug-11 15:11 
GeneralRe: RegEx with Pin
econner3-Aug-11 15:32
econner3-Aug-11 15:32 
Questionprocessing ozf2 and ozf3 file with c#? Pin
Mohsen Shahindust1-Aug-11 4:11
Mohsen Shahindust1-Aug-11 4:11 

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.