Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text Wrap for ListView in C# Pin
Heath Stewart19-Oct-04 5:32
protectorHeath Stewart19-Oct-04 5:32 
GeneralRe: Text Wrap for ListView in C# Pin
Member 141415919-Oct-04 13:35
Member 141415919-Oct-04 13:35 
GeneralWebSerivce output xml Pin
jzb18-Oct-04 0:42
jzb18-Oct-04 0:42 
GeneralRe: WebSerivce output xml Pin
Heath Stewart18-Oct-04 7:04
protectorHeath Stewart18-Oct-04 7:04 
GeneralTreeView DragDrop image Pin
dorothyDorothy17-Oct-04 23:39
dorothyDorothy17-Oct-04 23:39 
GeneralRe: TreeView DragDrop image Pin
Heath Stewart18-Oct-04 6:52
protectorHeath Stewart18-Oct-04 6:52 
GeneraldateTime parser Pin
Rob Tomson17-Oct-04 23:27
Rob Tomson17-Oct-04 23:27 
GeneralRe: dateTime parser Pin
J4amieC18-Oct-04 0:28
J4amieC18-Oct-04 0:28 
If you use the built-in format provider with the switch 's' you get aery similar format to yours above and you can use the parse static method on a DateTime...eg:

<br />
string s = DateTime.Now.ToString("s");<br />
Console.WriteLine(s);<br />
DateTime parsedDateTime = DateTime.Parse(s);<br />
Console.WriteLine(parsedDateTime);<br />


the "S" switch is defined as this format in the Docs:

2002-01-03T00:00:00
yyyy'-'MM'-'dd'T'HH':'mm':'ss (SortableDateTimePattern)

If you really want your own format then you can write your own class which implements IFormatProvider, or inherits from DateTimeFormatInfo.

DateTimeFormatInfo[^]
GeneralTreeView/ListView item selection and context menu Pin
EnkelIk17-Oct-04 21:44
EnkelIk17-Oct-04 21:44 
GeneralRe: TreeView/ListView item selection and context menu Pin
petst17-Oct-04 22:06
petst17-Oct-04 22:06 
GeneralRe: TreeView/ListView item selection and context menu Pin
afinnell18-Oct-04 5:35
afinnell18-Oct-04 5:35 
GeneralRe: TreeView/ListView item selection and context menu Pin
Heath Stewart18-Oct-04 6:41
protectorHeath Stewart18-Oct-04 6:41 
Generalcapturing any window in ur application Pin
Member 143169617-Oct-04 21:18
Member 143169617-Oct-04 21:18 
GeneralRe: capturing any window in ur application Pin
Heath Stewart18-Oct-04 6:32
protectorHeath Stewart18-Oct-04 6:32 
GeneralSending a string to Crystal Report Pin
myNameIsRon17-Oct-04 21:06
myNameIsRon17-Oct-04 21:06 
GeneralRe: trying to write to a log file in destructor Pin
Colin Angus Mackay17-Oct-04 20:56
Colin Angus Mackay17-Oct-04 20:56 
GeneralRe: trying to write to a log file in destructor Pin
Gavin Jeffrey17-Oct-04 21:41
Gavin Jeffrey17-Oct-04 21:41 
GeneralRe: trying to write to a log file in destructor Pin
Colin Angus Mackay17-Oct-04 23:01
Colin Angus Mackay17-Oct-04 23:01 
GeneralGetting all the section names from an ini file Pin
Member 64506717-Oct-04 20:32
Member 64506717-Oct-04 20:32 
GeneralRe: Getting all the section names from an ini file Pin
Colin Angus Mackay17-Oct-04 20:50
Colin Angus Mackay17-Oct-04 20:50 
GeneralRe: Getting all the section names from an ini file Pin
Heath Stewart18-Oct-04 6:28
protectorHeath Stewart18-Oct-04 6:28 
QuestionHow my remote sever popup information Pin
ChandruIT17-Oct-04 20:02
ChandruIT17-Oct-04 20:02 
AnswerRe: How my remote sever popup information Pin
afinnell18-Oct-04 5:57
afinnell18-Oct-04 5:57 
Questionhow to rread a line from a txt file to an array Pin
tom_dx17-Oct-04 10:20
tom_dx17-Oct-04 10:20 
AnswerRe: how to rread a line from a txt file to an array Pin
Kiran Satish17-Oct-04 10:32
Kiran Satish17-Oct-04 10:32 

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.