473,387 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DateTime & ToShortDateString

Hi,
I have an ASP.NET web application that I want to be locale sensitive. I
set my regional options to be English (United States) and rebooted my
machine (normally have English(United Kingdom setting)).
I then ran the web app and on a page where I wanted to display a
default date of the current date, I had a call to the .NET framework
method DateTime.ToShortDateString().
The date that was displayed on the page still used the English (United
Kingdom) date format (i.e. dd/mm/yyyy).
Is there some other setting required in ASP.NET to display the current
locales date format. I wrote a small app to display the CurrentLocale
and CurrentUILocale and they both were English (United States).

Thank you in advance for any help
John

Jul 22 '05 #1
0 1500

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

Similar topics

16
by: PK9 | last post by:
I have a string variable that holds the equivalent of a DateTime value. I pulled this datetime from the database and I want to strip off the time portion before displaying to the user. I am...
6
by: Paulb1us | last post by:
I want to set a DateTime field to Null before passing it to the DB //First I check to see if anything is in this datarow column, because sometimes we have no data. DateTime dt; if (...
5
by: ad | last post by:
I have a datetime filed, name Birthday. I use aTexBox.Text= ((DateTime)dr).ToShortDateString(); but it result in an .InvalidCastException: How can I datetime field in a TextBox?
0
by: Nugnet | last post by:
Hi, I have an ASP.NET web application that I want to be locale sensitive. I set my regional options to be English (United States) and rebooted my machine (normally have English(United Kingdom...
2
by: Chumley Walrus | last post by:
I have a datetime object named day1 that I want to display as just 3/29/2006 : Response.Write(day1); ...but this will display the long default 3/29/2005 12:00 AM . Using...
3
by: ad | last post by:
I want to transfer a DateTime variable to string. I use DateTime.ToShortDateString() to do that. But if the date is 2006 May 23, I want to it transfer to 2006/05/23, not 2006/5/23. How can I do?
1
by: John | last post by:
I have a drop down that is showing dates, I need to pass the selected date to my proc, so I pass it like this; ...
11
by: Axel Dahmen | last post by:
Hi, I'm working in a team developing an international website. When I set the page's CultureInfo to Hungarian (hu-HU) then the RangeValidator doesn't seem to be able to parse a TextBox's date...
5
by: Jeff User | last post by:
Hi all The date values in my dropdown list appear as mm/dd/yyyy Specifically, the day always contains 2 digits. I need to set the selected index of the dropdown to the date that equals another...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
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...

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.