Patrick, Uhm...You are one of the more expert/experianced VB developers out there, right?
...and even you would "never have thought of that" in regards to something seemingly simple and relatively inocuous in this new VB.Net?... Tell me, does this tell you _anything at all_ about this new "Visual Basic"? (remember that the first word in Basic is supposed to be "Beginners'"?) How in the heck is a real, actual BEGINNER supposed to cope with nuances like these if someone like you gets hung up by these sorts of "little things"? ...Just curious if you had any thoughts on this subject at this point given your experience using VB.Net... - Mark Burns <former .NOTer - said for honesty's sake, not as a procliamation of anything - I've backed off and attempted to remain neutral in the .Net/.Not religious wars in recent months> ----- Original Message ----- From: "Patrick Burrows" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 26, 2002 10:02 PM Subject: Re: VB.NET Oddity > ---------------------- Information from the mail header ----------------------- > Sender: dotnet discussion <[EMAIL PROTECTED]> > Poster: Patrick Burrows <[EMAIL PROTECTED]> > Subject: Re: VB.NET Oddity > -------------------------------------------------------------------------- ----- > > Thanks, Mike, that worked. > > FWIW, I would never have thought of that. While I'm formatting them as > dates, at all time they are used and displayed as strings. > > Anyway, thanks. > > > On Mon, 27 May 2002 11:57:31 +1000, Michael Weinhardt > <[EMAIL PROTECTED]> wrote: > > >Hi Patrick, > > > >I think the Format function considers "1:00" to be a string and > subsequently can't match with the formatting defined by "hh:mm tt" > > > >try this: > > > >Format(CDate("1:00"), "hh:mm tt") > > > >cheers, > >mw > > > >> -----Original Message----- > >> From: Patrick Burrows [mailto:[EMAIL PROTECTED]] > >> Sent: Monday, 27 May 2002 11:53 AM > >> To: [EMAIL PROTECTED] > >> Subject: [DOTNET] VB.NET Oddity > >> > >> > >> Can anyone explain to me these results in VB.NET: > >> > >> ?Format("1:00", "hh:mm tt") > >> "hh:mm tt" > >> > >> I am expecting it to be "1:00 am" > >> > >> I can get named formats to work ("Medium Time") but not any > >> custom formats. > >> > >> What am I missing? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.