473,513 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LongDate Formats

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?
--
Alan M Dunsmuir
Nov 20 '05 #1
1 1277
Hi
Change the foramt property on the datecontrol to custom then add your
custom fromat to the custom format property

Cheers
James
"Alan M Dunsmuir" <al**@moonrake.demon.co.uk> wrote in message
news:sy**************@moonrake.demon.co.uk...
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?
--
Alan M Dunsmuir

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3711
by: Trader | last post by:
Hi, I'm trying to use Mark Hammond's win32clipboard module to extract more complex data than just plain ASCII text from the Windows clipboard. For instance, when you select all the content on...
2
3100
by: raulgz | last post by:
Hi I work ith sql server 2000 and i need know the diferent of joins in format not ansi ( with * ) and joins in format ansi ( with 'outher join on' ). Two format work equal ???
4
5345
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
2
1791
by: Subodh | last post by:
Hi, Currently we get data from more then 200 different sources and all of our vendors provide data in different file formats. The problem is we have more then 100 DTS packages now and the...
2
1032
by: Yoshi | last post by:
Is there a way to programatilly obtain a list of all the data formats using C# code? Thanks, Dave
2
1329
by: Mark Jerde | last post by:
(If these are the wrong groups please suggest the right one(s). Thanks.) I need to come up with a way to test potentially thousands of data (files / records / streams) to determine if they match...
2
2005
by: **Developer** | last post by:
If I select files in Windows Explorer and click Copy I find the following formats on the clipboard. I know what FileDrop contains. How can I find out what the others are used for? FileDrop...
8
1481
by: Christopher Kurtis Koeber | last post by:
Dear All, Recently I created a thread about trying to load a particular ICON image that GDI plus could not load. I realized that GDI plus definitely does not support it because it had a certain...
20
2588
by: tomerfiliba | last post by:
hey i've been seeing lots of config-file-readers for python. be it ConfigObj (http://www.voidspace.org.uk/python/configobj.html) or the like. seems like a trend to me. i came to this conclusion...
2
2905
by: Peter Oliphant | last post by:
The Image class allows loading a bitmap from a graphic file. So far I've gotten it to work with JPG and BMP files. What other graphic file formats are supported in this way? Is this fixed based...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.