LongDate Formats

  • Thread starter Thread starter Alan M Dunsmuir
  • Start date Start date
A

Alan M Dunsmuir

I must be achieving senility. I can no longer understand the contents of
the VS.NET Help files.

When I use the ToLongdateString method on a date variable (.SelectedDate
from VB's Calendar control), it presents the selected date in the format
"dd MMMM yyyy" (i.e., e.g., "14 February 2004") whereas I want to see it
in the format "dddd dd MMMM yyyy" (i.e. "Saturday 14 February 2004"),
which I thought was the default for UK English. (Have my settings
perhaps been screwed up by my installing Macromedia products, like
DreamWeaver and ColdFusion?)

I tried getting my desired result by using instead
..SelectedDate.ToString.Format("dddd dd MM."), but this, rather
depressingly presented all dates as (specifically) the text string "dd.
DD MM.".

How do I either set up this particular instance of a date format to show
"dddd dd MMMM yyyy", or alternatively change my '.ToLongDateString' in
the 'LocalCulture' set up to show "dddd dd MMMM yyyy" by default?
 
Hi
Change the foramt property on the datecontrol to custom then add your
custom fromat to the custom format property

Cheers
James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top