Click here to Skip to main content
15,905,614 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Save file from PDA to remote computer Pin
k.giannis_198029-Jun-07 5:51
k.giannis_198029-Jun-07 5:51 
QuestionDateTime.Parse fails at VB2005 Pin
TotalTops197229-Jun-07 2:55
TotalTops197229-Jun-07 2:55 
AnswerRe: DateTime.Parse fails at VB2005 Pin
Dave Kreskowiak29-Jun-07 4:36
mveDave Kreskowiak29-Jun-07 4:36 
GeneralRe: DateTime.Parse fails at VB2005 [modified] Pin
TotalTops197229-Jun-07 5:40
TotalTops197229-Jun-07 5:40 
GeneralRe: DateTime.Parse fails at VB2005 Pin
Dave Kreskowiak29-Jun-07 7:33
mveDave Kreskowiak29-Jun-07 7:33 
GeneralRe: DateTime.Parse fails at VB2005 Pin
TotalTops197229-Jun-07 7:43
TotalTops197229-Jun-07 7:43 
GeneralRe: DateTime.Parse fails at VB2005 Pin
Dave Kreskowiak29-Jun-07 7:46
mveDave Kreskowiak29-Jun-07 7:46 
GeneralRe: DateTime.Parse fails at VB2005 Pin
TwoFaced29-Jun-07 14:23
TwoFaced29-Jun-07 14:23 
I found a way to cope with 'th', 'st', 'nd' and 'rd'. It's not that pretty but if you wrap it up into a function you've got a workable solution. It would be nice if you could just ignore characters, then you could use something like "d##MMMMyyyy" where # would be a character that's ignored. However, I couldn't find anything in the documentation that would lead me to believe that's possible. Anyway here you go.
' Valid date formats
Dim validFormats As String() = {"d'st'MMMMyyyy", "d'nd'MMMMyyyy", "d'rd'MMMMyyyy", "d'th'MMMMyyyy"}
Dim myDate As Date = Date.ParseExact("1stDecember1993", validFormats, Globalization.CultureInfo.CurrentCulture, Globalization.DateTimeStyles.None)
Your original post showed no spaces for the date...it was 7thNovember1993. If that's not the case just add appropriate spaces into the formatting strings and it should work.
QuestionCustom Attribute Pin
Navneet Hegde29-Jun-07 2:55
Navneet Hegde29-Jun-07 2:55 
AnswerRe: Custom Attribute Pin
Dave Kreskowiak29-Jun-07 4:31
mveDave Kreskowiak29-Jun-07 4:31 
QuestionHow to Read the Content from MS Word and Excel File Pin
Thirukumar29-Jun-07 2:50
Thirukumar29-Jun-07 2:50 
AnswerRe: How to Read the Content from MS Word and Excel File Pin
Dave Kreskowiak29-Jun-07 4:09
mveDave Kreskowiak29-Jun-07 4:09 
Questionhelp Pin
ashishp0229-Jun-07 2:33
ashishp0229-Jun-07 2:33 
AnswerThe rules... Pin
leckey29-Jun-07 3:20
leckey29-Jun-07 3:20 
AnswerRe: help Pin
Navneet Hegde29-Jun-07 3:24
Navneet Hegde29-Jun-07 3:24 
AnswerRe: help Pin
originSH29-Jun-07 3:28
originSH29-Jun-07 3:28 
AnswerRe: help Pin
Sathesh Sakthivel29-Jun-07 3:38
Sathesh Sakthivel29-Jun-07 3:38 
QuestionDDL loses its contents at postback Pin
shahid_isb8529-Jun-07 2:20
shahid_isb8529-Jun-07 2:20 
AnswerRe: DDL loses its contents at postback Pin
Dave Kreskowiak29-Jun-07 4:07
mveDave Kreskowiak29-Jun-07 4:07 
Questionaccessing the html content of a webpage in the ie browser from vb.net Pin
chiyankrishna29-Jun-07 1:47
chiyankrishna29-Jun-07 1:47 
AnswerRe: accessing the html content of a webpage in the ie browser from vb.net Pin
sathesh pandian29-Jun-07 2:22
sathesh pandian29-Jun-07 2:22 
GeneralRe: accessing the html content of a webpage in the ie browser from vb.net Pin
chiyankrishna29-Jun-07 18:49
chiyankrishna29-Jun-07 18:49 
GeneralRe: accessing the html content of a webpage in the ie browser from vb.net Pin
Dave Kreskowiak30-Jun-07 2:04
mveDave Kreskowiak30-Jun-07 2:04 
AnswerRe: accessing the html content of a webpage in the ie browser from vb.net Pin
Dave Kreskowiak29-Jun-07 4:06
mveDave Kreskowiak29-Jun-07 4:06 
GeneralRe: accessing the html content of a webpage in the ie browser from vb.net Pin
chiyankrishna29-Jun-07 19:00
chiyankrishna29-Jun-07 19:00 

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.