Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a datagrid in property grid Pin
Eddy Vluggen30-Apr-10 5:11
professionalEddy Vluggen30-Apr-10 5:11 
GeneralRe: How to create a datagrid in property grid Pin
Henry Minute30-Apr-10 6:52
Henry Minute30-Apr-10 6:52 
GeneralRe: How to create a datagrid in property grid Pin
Eddy Vluggen30-Apr-10 7:43
professionalEddy Vluggen30-Apr-10 7:43 
GeneralRe: How to create a datagrid in property grid Pin
Sangeetha232-May-10 18:17
Sangeetha232-May-10 18:17 
GeneralRe: How to create a datagrid in property grid Pin
Sangeetha232-May-10 19:29
Sangeetha232-May-10 19:29 
GeneralRe: How to create a datagrid in property grid Pin
Henry Minute3-May-10 3:15
Henry Minute3-May-10 3:15 
QuestionString formatting? Pin
Dirk C De Winnaar30-Apr-10 2:03
Dirk C De Winnaar30-Apr-10 2:03 
AnswerRe: String formatting? [modified] Pin
Luc Pattyn30-Apr-10 2:33
sitebuilderLuc Pattyn30-Apr-10 2:33 
I know of no standard way of specifying a wildcard for parsing DateTime strings, so you would have to remove the unwanted characters explicitly.

This is what you could do:
create a new format string and a new data string skipping the irrelevant characters (i.e. the '_' positions in the original format string), then pass the results to DateTime.TryParseExact

Example:
turn ___yyyy-MM-dd HH:mm:ss into yyyyMMddHHmmss
 and DH#2010-04-30-13:45:33 into 20100430134533



[ADDED]
This approach will not work well all the time; IMO it does under these circumstances:
- all fields are numeric
- all fields have 2 digits, except year which needs 4.
[/ADDED]

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


modified on Friday, April 30, 2010 10:25 AM

GeneralRe: String formatting? Pin
Not Active30-Apr-10 2:51
mentorNot Active30-Apr-10 2:51 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 3:13
sitebuilderLuc Pattyn30-Apr-10 3:13 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 4:06
mentorNot Active30-Apr-10 4:06 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:21
sitebuilderLuc Pattyn30-Apr-10 4:21 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 4:49
mentorNot Active30-Apr-10 4:49 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:54
sitebuilderLuc Pattyn30-Apr-10 4:54 
AnswerRe: String formatting? Pin
Not Active30-Apr-10 2:47
mentorNot Active30-Apr-10 2:47 
GeneralRe: String formatting? Pin
Dirk C De Winnaar30-Apr-10 3:34
Dirk C De Winnaar30-Apr-10 3:34 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 4:18
mentorNot Active30-Apr-10 4:18 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:22
sitebuilderLuc Pattyn30-Apr-10 4:22 
AnswerRe: String formatting? Pin
V.30-Apr-10 3:47
professionalV.30-Apr-10 3:47 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:50
sitebuilderLuc Pattyn30-Apr-10 4:50 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 5:22
mentorNot Active30-Apr-10 5:22 
AnswerRe: String formatting? Pin
PIEBALDconsult30-Apr-10 6:40
mvePIEBALDconsult30-Apr-10 6:40 
QuestionGridvIewCell Click Pin
jitendra sandu30-Apr-10 1:57
jitendra sandu30-Apr-10 1:57 
AnswerRe: GridvIewCell Click Pin
Richard MacCutchan30-Apr-10 2:21
mveRichard MacCutchan30-Apr-10 2:21 
QuestionReturning an object from a web service Pin
JohnLBevan30-Apr-10 0:17
professionalJohnLBevan30-Apr-10 0:17 

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.