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

6 digit Date Format

Ian
I have a report that shows a date along with many other fields, I am trying
to keep this date field as small as possible to make room for other fields
so I want it to be a 6 digit date.

My problem is that Windows default Short Date uses 8 digits not 6 so when I
distribute my DB the user has to change the standard regional settings, what
I want to do is format the date to be 6 digits.

I have tried setting the fields Format to DD\MM\YY instead of Shot Date,
this works fine but forces the displayed date to show the Day before the
Month, some users might want the month to be shown first. My question is,
how can I format the text box to display a 6 digit date while retaining the
regional settings of Month or Day first?

Regards
Nov 13 '05 #1
1 4509
"Ian" <ia********@ntlworld.com> wrote in message
news:xy******************@newsfe1-win.ntli.net...
I have tried setting the fields Format to DD\MM\YY instead of Shot Date,
this works fine but forces the displayed date to show the Day before the
Month, some users might want the month to be shown first. My question is,
how can I format the text box to display a 6 digit date while retaining
the regional settings of Month or Day first?


AFAIK, you can't. If this is essential to your application, you could write
a function that determined the user's Short Date format (hint: use something
like DateSerial(2003, 2, 1) and parse it to see where the 2 and 1 occur) and
explicitly set the Format property of the textbox depending on what you
return from that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #2

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

Similar topics

23
by: middletree | last post by:
I have a field that is stored in SQL Server in date/time format. On one page, I only need the date to display. I am able to do this by saying: DateValue(strLastModified) However, this returns...
12
by: Mark | last post by:
I feel embarassed asking such a simple question --- Year(Date()) returns 2004; I want only the last two digits. Format(Year(Date()),"yy") returns 05. How do I get 04? Thanks! Mark
5
by: MHenry | last post by:
Hi, I don't know what happened, but all the MS Access dates in all tables, queries, forms, and reports in all databases suddenly show on my computer with the year as 4 digits (including network...
2
by: MLH | last post by:
Using A97, I have tables with 10-char text phone number fields to allow entry of xxxyyyyyyy phone numbers - where xxx is the 3-digit area code and yyyyyyy is the 7-digit phone number. I wish to...
4
by: Anon | last post by:
Hello All! I have written a simple app that auto downloads a file from a secure ftp, renames it, and moves it to a network location. Everything works great except the renaming part. I parse out...
3
by: O.B. | last post by:
I'm trying to convert the current year into a 2-digit format. Since getYear returns 106, I'm trying to perform a substring of getFullYear() with no luck. What am doing wrong? currentTime = new...
2
by: jmarr02s | last post by:
I set the input mask for the date field to "00/00/00;0_" but instead of showing a 6 digit date such as 01/01/06, I receive 01/01/2006 an 8 digit date! Is there a manner in which I can over ride...
2
by: =?Utf-8?B?UmljaA==?= | last post by:
Using VB2005, a datagridview is displaying the dates with 4 digit years on one workstation but displays the dates of the exact same records with only 2 digit years on a 2nd workstation. I will...
9
by: sunita jadhav | last post by:
my question is if i type in html textbox on key press event suppose i type 12345 values in textbox then i delete or edit any value of text box suppose i edit 3 and i insert the value 6 at 3 but i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.