473,436 Members | 1,526 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,436 software developers and data experts.

WebApplication - CultureInfo.CurrentCulture.DateTimeFormat.ShortDat ePattern--Not Working!!

Hi All

How to get the Current DateFormat based on the regional settings.
The following statment is giving right data when it is windows based
application, but when I try the same in Web application I'm not getting the
expected result.

It is only showing the this format :"M/d/yyyy".

"CultureInfo.CurrentCulture.DateTimeFormat.ShortDa tePattern"

lblDate.Text =CultureInfo.CurrentCulture.DateTimeFormat.ShortDa tePattern;

Any help on this highly appreciated.

Regards
Murali
Nov 16 '05 #1
0 3342

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

Similar topics

0
by: Karunakararao | last post by:
Hi Vinay I am not able to get the web application. regional settings made at the operating system level. For example, Canada uses a dd/mm/yyyy format while the US uses mm/dd/yyyy. and yyyy/mm/dd...
12
by: magister | last post by:
Hello, I know I can set the Culture to what I want, but shouldn't the current culture be taken from the regional settings on the web server's control panel!!! Mine is set to "united kingdom"...
0
by: 00_CumPeeWearD12 | last post by:
I have been using Debug mode in Visual studio, running my app on localhost. Whenever I retrieve CultureInfo.CurrentCulture, I can get "en-US". However, when I compiled the whole application as...
0
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they...
17
by: bill | last post by:
I have the following cod ein my base page: Private tInfo As TextInfo = New CultureInfo("en-US", False).TextInfo Protected Function TitleIt(ByVal input As String) As String Return...
4
by: Dirk Behnke | last post by:
How can I start a new process with a different CultureInfo? I have tried already to set the CultureInfo of the thread starting the new process before creating the Process object, but it doesn't...
5
by: Tsair | last post by:
I set the thread culture in MAIN() as below in order to show the date in format DAY/MONTH/YEAR, but the datagridview alway show the date in M/d/yyyy. How to set the default Date format from...
2
by: LushaM | last post by:
Hi, all! I have a question about CurrentCulture ( System.Globalization.CultureInfo.CurrentCulture ). As I understand, by default, System.Globalization.CultureInfo.CurrentCulture has the same...
1
by: =?Utf-8?B?SmVu?= | last post by:
I could get the correct System.Globalization.CultureInfo.CurrentCulture and System.Globalization.CultureInfo.CurrentUICulture when the my WPF application first started. While my application was...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.