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

Incorrect Date Format

Hi Everybody,

I hope this is the correct newsgroup for this, if not
please let me know where should i send this question which
is driving me crazy.

The problem is the FormatDateTime function it is changing
the date format to MM/dd/yyyy but we need dd/MM/yyyy. We
already changed the regional settings for the
administrator user. Access the regedit tool and change the
format to dd/MM/yyy on all the users on the server but we
are still getting the incorrect format.

First we got for every case the format switch. For example
we ask for this FormatDateTime("01/10/2003",2) Octuber
1st, 2003 an the result was "10/01/2003" January 10th, 2003
for days lower than the 12th and even if we send
FormatDateTime("31/10/2003", 2) we got "10/31/2003"

After some changes this is what is happening know
FormatDateTime("01/10/2003", 2) -- > 10/01/2003
FormatDateTime("31/10/2003", 2) -- > 31/10/2003

The server is running Windows 2000 Advanced Server with
IIS 5.0

Thanks for your help on this matter

Alfonso Chavez
Jul 19 '05 #1
1 6391
Alfonso Chavez wrote:
Hi Everybody,

I hope this is the correct newsgroup for this, if not
please let me know where should i send this question which
is driving me crazy.

The problem is the FormatDateTime function it is changing
the date format to MM/dd/yyyy but we need dd/MM/yyyy. We
already changed the regional settings for the
administrator user. Access the regedit tool and change the
format to dd/MM/yyy on all the users on the server but we
are still getting the incorrect format.

First we got for every case the format switch. For example
we ask for this FormatDateTime("01/10/2003",2) Octuber
1st, 2003 an the result was "10/01/2003" January 10th, 2003
for days lower than the 12th and even if we send
FormatDateTime("31/10/2003", 2) we got "10/31/2003"

After some changes this is what is happening know
FormatDateTime("01/10/2003", 2) -- > 10/01/2003
FormatDateTime("31/10/2003", 2) -- > 31/10/2003

The server is running Windows 2000 Advanced Server with
IIS 5.0

Thanks for your help on this matter

Alfonso Chavez


http://www.aspfaq.com/show.asp?id=2260
http://www.aspfaq.com/show.asp?id=2313

HTH,
Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2

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

Similar topics

1
by: Michelle Hillard | last post by:
Hi guys, would appreciate if you can shed some light on this. Sorry to be a pain, can you tell me what is wrong with the following: for /F %%i in ('dir /b /on c:\bcp\pc*.txt') do bcp...
6
by: Luis | last post by:
I've adapted the following code so that it prints the date in DD/MM/YYYY format. However it prints the incorrect date! If todays date is 01/01/2003 it prints 03/01/2003 - 3 days out! What have I...
6
by: Brenda | last post by:
We are currently switching to DB2/AIX. I am modifying my sqrs to work on this new platform. (We are currently on Oracle). I am having a problem with an sqr that has a reference to a variable for...
5
by: m_t_hill | last post by:
Running MS Access 2000 MS Windows XP Pro This has caused me a lot of hair loss in the last few days so would appreciate any help. I am running code to append/update a local access database...
1
by: Dominique Vandensteen | last post by:
I have this code Now().ToString("MMM-yyyy") this should return something like Oct-2003 it works fine in a normal vb.net program when I run this from aspx it returns oct.-2003 the first letter...
5
by: Easystart | last post by:
Hi, Sorry for my English. English is not my native tougue. I am working in MS Access 2000 with a SQLServer 2000 Backend database. MS Access 2000 is my GUI front end that has SQLServer linked...
2
by: jack-e | last post by:
Hi, Since upgrading servers the date format has been incorrect on my website. It now show dates as MM/DD/YYYY instead of DD/MM/YYYY (Australian format). I changed the international settings...
3
Frinavale
by: Frinavale | last post by:
Want to see something weird? The following code: Dim str As New StringBuilder Dim x As String = "11/6/2009 14:00" Dim dx As Date Date.TryParse(x, dx) str.Append("dx:")...
27
by: dennis1989 | last post by:
Im having problem running the program. Its say i have incorrect syntax at my strsql coding Private Sub ComboBox1_Change() Dim rst As ADODB.Recordset 'Initialize Recordset ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.