I have deployed my ASP.Net Application on Windows Server 2000, Service Pack
4, when I run my Application and shows today's date with
system.date.tod ay.ToShortDateS tring, it shows in the format m/d/yyyy while
in my Regional Settings, I have defined the format as dd/MM/yyyy.
If I run the same Application on my Laptop with Windows XP Pro, it displays
the correct date format, any idea please ?
Best Regards,
Luqman 3 3203
Hi there,
Server has got different locale setting. You can force ASP.NET worker
process to use different locale by changing <globalizatione lement in the
web.config / machine.config file:
<system.web>
.... other settings
<globalizatio n culture="en-GB"/>
.... other settings
</system.web>
hope this helps
--
Milosz
"Luqman" wrote:
I have deployed my ASP.Net Application on Windows Server 2000, Service Pack
4, when I run my Application and shows today's date with
system.date.tod ay.ToShortDateS tring, it shows in the format m/d/yyyy while
in my Regional Settings, I have defined the format as dd/MM/yyyy.
If I run the same Application on my Laptop with Windows XP Pro, it displays
the correct date format, any idea please ?
Best Regards,
Luqman
An ASPX page runs on the server so it uses the server settings not your
workstation settings.
You could use the globalization section in the web.config file to tell
ASP.NET which country should be used (rather than messing with system wide
server settings. See : http://msdn2.microsoft.com/en-us/library/hy4kkhe0.aspx
"Luqman" <pe*******@cybe r.net.pka écrit dans le message de news: OL************* @TK2MSFTNGP06.p hx.gbl...
>I have deployed my ASP.Net Application on Windows Server 2000, Service Pack
4, when I run my Application and shows today's date with
system.date.tod ay.ToShortDateS tring, it shows in the format m/d/yyyy while
in my Regional Settings, I have defined the format as dd/MM/yyyy.
If I run the same Application on my Laptop with Windows XP Pro, it
displays
the correct date format, any idea please ?
Best Regards,
Luqman
Hi,
Thanks V.Much, it resolved my problem.
Best Regards,
Luqman
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message
news:45******** *************** ***********@mic rosoft.com...
Hi there,
Server has got different locale setting. You can force ASP.NET worker
process to use different locale by changing <globalizatione lement in the
web.config / machine.config file:
<system.web>
... other settings
<globalizatio n culture="en-GB"/>
... other settings
</system.web>
hope this helps
--
Milosz
"Luqman" wrote:
I have deployed my ASP.Net Application on Windows Server 2000, Service
Pack
4, when I run my Application and shows today's date with
system.date.tod ay.ToShortDateS tring, it shows in the format m/d/yyyy
while
in my Regional Settings, I have defined the format as dd/MM/yyyy.
If I run the same Application on my Laptop with Windows XP Pro, it
displays
the correct date format, any idea please ?
Best Regards,
Luqman This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ST |
last post by:
Hello, I will be posting 2 errors that I just can't seem to figure out (I'll
put them in different posts). I have looked all over the internet, and I
still can't figure these out! This webapp was working fine, and then all of
a sudden it just "broke"! Thanks in advance for your help!
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review...
|
by: kgatchell2001 |
last post by:
Hi, I am a beginner working on a database to manage clients, payroll,
station assignments, etc. I have created a query which calculates age
based on subtracting the date of birth from the current date. This
works fine and date of birth is entered as month, day, year in
standard short date format (99/99/0000;;).
Here is the problem, I would also like to print out a list of all
clients who have a birthday in any given month. Presently,...
|
by: Indrani |
last post by:
I am working on a C# console application. How can we set the system
date in C#.
Rgds,
Indrani
|
by: TerryW |
last post by:
I am using a system.windows.forms.datagrid and i set it's data
source to a system.data.datatable which has a column that's
dataType is system.dateTime. When I try to enter minutes and
seconds into the grid it removes that time data and leaves only
the date. The time information is still there though.
How can I make the time visible?
TIA TerryW
|
by: Henry Lee |
last post by:
hi , all
In ASP2.0 , the date object always showing like "3/27/2006 12:00:00 AM"
How to remove "12:00:00 AM" and only make it shows "3/27/2006" ?
Thanks very much
Henry
| |
by: ABC |
last post by:
Is there any function return the short date format on the regional and
Language Options under control panel?
|
by: savigliano |
last post by:
hello, i am doing a date comparation and i have reallize that the data
i have in my database (general date format) it is causing me problems,
and because i don´t need the time data i would like to convert all the
general date data into short date format, so i would like to delete the
time part of the data, it is any way i can do that ????
Thank you in advance and sorry for my english
carlos
|
by: john |
last post by:
I have an unbound field in which I would like to show january 1 of the
current year like this 01-01-2007. I tried this code but it doesn't work:
=dateserial(Year(date()),1,1)
Can someone help me out?
Thanks in advance,
john
|
by: Matt Brown - identify |
last post by:
Hello,
I'm trying to figure out a method to look up by a range of dates,
entries in a database. The format of the date in the database is "M\D
\yyyy HH:MM:SS".
What i need to do is take the dates that are in the database
(formatted as above), isolate the date (which is in short format) and
compare it to the short formatted date in a datetimepicker.
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |