Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > How to change the default datetime format for Windows Server 2003

Reply
Thread Tools Display Modes

How to change the default datetime format for Windows Server 2003

 
 
Paco
Guest
Posts: n/a

 
      06-11-2010

As per the topic, I need to know how to change the default or the master
datetime format for Windows 2003 Server Standard Edition.

My problem is as such.

One of my applications is working under the IIS, and thus getting the date
and time from it. The IIS is running under local system and does not change
the date time when I change if for the logged in user.
Not even when I'm logged in as local administrator.

My program take in dd/MM/yyyy but however it seems like the server is always
default to M/d/yyyy or MM/dd/yyyy.

So, how can i change the default setting so that it will apply to the user
account IUSR or across all accounts that is used on the server?
 
Reply With Quote
 
 
 
 
Andrew Morton
Guest
Posts: n/a

 
      06-11-2010
Paco wrote:
> As per the topic, I need to know how to change the default or the
> master datetime format for Windows 2003 Server Standard Edition.
>
> My problem is as such.
>
> One of my applications is working under the IIS, and thus getting the
> date and time from it. The IIS is running under local system and does
> not change the date time when I change if for the logged in user.
> Not even when I'm logged in as local administrator.
>
> My program take in dd/MM/yyyy but however it seems like the server is
> always default to M/d/yyyy or MM/dd/yyyy.
>
> So, how can i change the default setting so that it will apply to the
> user account IUSR or across all accounts that is used on the server?


So, your problem is with the /display/ of the date? You can never rely on a
default date-to-string conversion: always do it explicitly like
someDate.ToString("dd/MM/yyyy"). That is the only way to be sure it will do
exactly what you want.

Also, you'll be needing to explicitly parse input dates, if applicable,
rather than assuming the system "knows" what you meant.

HTH
--
Andrew


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong with my live.com account? Michael Elliott Windows Live Mail 43 1 Week Ago 09:36 PM
Re: Invalid Header Fields Miles Li [MSFT] Windows Small Business Server 30 09-28-2011 07:32 AM
Re: Windows 2003 DNS and AD problems Danny Sanders DNS Server 0 03-30-2010 08:34 PM
Re: Active Directory problems/dcdiag error kj [SBS MVP] Windows Small Business Server 3 03-24-2010 09:19 PM
Re: DC with "Windows cannot obtain the domain controller name for your computer network" Danny Sanders Active Directory 0 01-21-2010 02:26 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59