473,396 Members | 2,020 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,396 software developers and data experts.

Problems formatting a date

I have the following at the top of my page :
Session.LCID = 2057 'UK
which sets local date/currency settings to UK.

But despite this, a date entered as "28/01/1999" and stored in Access as
"28/01/1999" is displayed as "01/28/1999".

I haven't a clue whats happening.
Any Ideas ?
Jul 19 '05 #1
1 1124
Poppy wrote:
I have the following at the top of my page :
Session.LCID = 2057 'UK
which sets local date/currency settings to UK.

But despite this, a date entered as "28/01/1999" and stored in Access
as "28/01/1999" is displayed as "01/28/1999".
Sigh.
Access does not store a date with any format. It stores a data as a number
of type Double. The whole number portion is the number of days since the
seed date. The decimal portion represents the time of day (.0 = midnight, .5
= noon)


I haven't a clue whats happening.
Any Ideas ?


Look up "date format" at www.aspfaq.com

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

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
2
by: Sara | last post by:
The problem: Conditional formatting bold, red when field Value < date() sets the field background to white - always - whether condition is met or not. I want the field unfilled and just red/bold...
2
by: ethoemmes | last post by:
Hi I am trying to use the below functions to return the month for a given date. I want the month displayed as Jan for 01 so I wrapped the Month function in the Format function. Month:...
0
by: Brian Conway | last post by:
I am having some validation and insertion problems. I am using a date picker that takes the selected date and puts it to ("dd-MMM-yyyy") format, as this was the only format that Oracle would...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
5
by: | last post by:
Can someone help me on a format problem. I am trying to do this.. format a string to a number. The string has a number with a colon in the middle. Format("1:30","00:00") returns 00:00 instead...
2
by: Jesus | last post by:
Hi! I'm migrating a web application (ASP.NET) from Framework 1.1 to Framework 2.0. I have a problem with that, and I didn't found a solution changing something in web.config or something like...
4
by: Ken Wigle | last post by:
All, I would be very grateful for any help on this question. I have an application in asp.net 2.0 where I dynamically create a datatable and then bind that to a gridview. Unfortunately, the...
4
by: Jim in Arizona | last post by:
Apparently, the FTB forum at http://freetextbox.com/forums/22/ShowForum.aspx isn't very active. I need some kind of text box control that allows formatting AND is free so I came across...
9
by: TC | last post by:
Hi. I have some ASP written in VB.net which is currently installed on a customers server. The asp connects to a local MySql database and retrieves data for the customers customers. If you see...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.