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

C#

 
QuestionDateTime formatting in "dd-MMM-yyyy"? [modified] Pin
John Sundar13-Feb-08 18:18
John Sundar13-Feb-08 18:18 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 18:43
Steve Echols13-Feb-08 18:43 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
John Sundar13-Feb-08 18:57
John Sundar13-Feb-08 18:57 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 20:15
Steve Echols13-Feb-08 20:15 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
John Sundar13-Feb-08 20:25
John Sundar13-Feb-08 20:25 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 21:07
Steve Echols13-Feb-08 21:07 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
John Sundar13-Feb-08 21:52
John Sundar13-Feb-08 21:52 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 20:22
Steve Echols13-Feb-08 20:22 
Ah, I see you updated your code. The column "Check" is probably of type DateTime, so when you set your formatted string value, it gets parsed back into a DateTime.

You can either add a new column to table[0] of type text and set the formatted date time to it (I don't recommend doing it this way), or look into a way of making the control format the existing datetime column (recommended).


- S
50 cups of coffee and you know it's on!

GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
PIEBALDconsult14-Feb-08 13:19
mvePIEBALDconsult14-Feb-08 13:19 
GeneralIncluding MSSQL in a C# application for a client. Pin
AlainMesias13-Feb-08 15:51
AlainMesias13-Feb-08 15:51 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Mark Churchill13-Feb-08 16:09
Mark Churchill13-Feb-08 16:09 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Not Active13-Feb-08 16:15
mentorNot Active13-Feb-08 16:15 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Joachim Kerschbaumer13-Feb-08 17:13
Joachim Kerschbaumer13-Feb-08 17:13 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Harvey Saayman13-Feb-08 19:59
Harvey Saayman13-Feb-08 19:59 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Joachim Kerschbaumer13-Feb-08 20:08
Joachim Kerschbaumer13-Feb-08 20:08 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Harvey Saayman13-Feb-08 20:16
Harvey Saayman13-Feb-08 20:16 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Joachim Kerschbaumer13-Feb-08 20:22
Joachim Kerschbaumer13-Feb-08 20:22 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Harvey Saayman13-Feb-08 20:26
Harvey Saayman13-Feb-08 20:26 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Joachim Kerschbaumer13-Feb-08 20:55
Joachim Kerschbaumer13-Feb-08 20:55 
GeneralReflector and CLI's Pin
MarkB77713-Feb-08 12:44
MarkB77713-Feb-08 12:44 
GeneralRe: Reflector and CLI's Pin
Colin Angus Mackay13-Feb-08 12:49
Colin Angus Mackay13-Feb-08 12:49 
GeneralRe: Reflector and CLI's Pin
MarkB77713-Feb-08 12:54
MarkB77713-Feb-08 12:54 
GeneralXML as datasource Pin
pingboy13-Feb-08 10:04
pingboy13-Feb-08 10:04 
GeneralRe: XML as datasource Pin
Not Active13-Feb-08 16:19
mentorNot Active13-Feb-08 16:19 
GeneralC# Windows Service with Remoting Pin
BogdanMitrea13-Feb-08 10:02
BogdanMitrea13-Feb-08 10:02 

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.