473,625 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4529
"Ian" <ia********@ntl world.com> wrote in message
news:xy******** **********@news fe1-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
4117
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 to me the date in this format: 05/10/2004 Instead, I would like to see:
12
42783
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
1804
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 databases I access on my computer). It used to always be 2 digits. I have been changing the format of dates in all my databases tables, queries, forms, and reports to mm/dd/yy and that was working for a while. But today, the reports I made this...
2
8282
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 display these as (xxx) yyy-yyyy. Trouble is, some telephone numbers are entered by users as only 7-digits. They omit the area code in many cases, understandably. They consider it redundant and its not necessary for them to dial it - in most cases,...
4
8968
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 the last write date to get the new filename, but the days and month are only single digits! This is a problem when you reach something like 01/11/2004 and 11/1/2004, I get dup filenames! ie.. 2004111.txt. any idea on how I can rename these files...
3
11833
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 Date() var result = "FY" + currentTime.getFullYear().substring(2, 4)
2
3768
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 this?...In the table containing this date field? Or by way of the textbox control in which the date is entered on my subform? Thanks!,
2
1308
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 guess that it may be an environment setting on the other workstation. But how can I make the datagridview display the dates in the same format consistently for all workstations? The data is coming from a sql Server 2000 table. Select * from...
9
2712
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 have face problem that is if i insert 6 at 3 this value is not insert at 3 it insert last positon i.e after last value .In given example the value is appned or insert after 5 then output is 12456 but i have want the output 12645 and i also give the...
0
8259
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
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,...
0
8637
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 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...
1
8358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7188
agi2029
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...
1
6119
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2621
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
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.