473,795 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Date Field Masks

Hi,

I am trying to develop a database that will store dates in the format -
21.02.2006 rather than the standard 21/02/2006.

This is because of the SAP feeds that i am pulling in - since SAP
stores dates as dd.mm.yyyy

I would just store the dates as text but this makes processing the data
much harder.

Does anyone have any suggestions?

Regards

Andrew Paton

Oct 24 '06 #1
3 2480

an****@playdar. co.uk wrote:
Hi,

I am trying to develop a database that will store dates in the format -
21.02.2006 rather than the standard 21/02/2006.

This is because of the SAP feeds that i am pulling in - since SAP
stores dates as dd.mm.yyyy

I would just store the dates as text but this makes processing the data
much harder.

Does anyone have any suggestions?

Regards

Andrew Paton
You can use a custom format for the dates.

SELECT tblTableName.Fl dDates, Format([FldDates],"dd\.mm\.yyyy" ) AS
NewDate
FROM tblTableName;

Oct 24 '06 #2
Ok,

Its not the displaying that was the problem - it was mainly the problem
of inputting the data - see all of our staff use SAP on a regular basis
so it is second nature to type the date in the format dd.mm.yyyy -
whereas it will be stored in the database int the format dd/mm/yyyy - i
cant get an input mask to give me the right result! Any ideas?
Tanis wrote:
an****@playdar. co.uk wrote:
Hi,

I am trying to develop a database that will store dates in the format -
21.02.2006 rather than the standard 21/02/2006.

This is because of the SAP feeds that i am pulling in - since SAP
stores dates as dd.mm.yyyy

I would just store the dates as text but this makes processing the data
much harder.

Does anyone have any suggestions?

Regards

Andrew Paton
You can use a custom format for the dates.

SELECT tblTableName.Fl dDates, Format([FldDates],"dd\.mm\.yyyy" ) AS
NewDate
FROM tblTableName;
Oct 24 '06 #3

Patonar wrote:
Ok,

Its not the displaying that was the problem - it was mainly the problem
of inputting the data - see all of our staff use SAP on a regular basis
so it is second nature to type the date in the format dd.mm.yyyy -
whereas it will be stored in the database int the format dd/mm/yyyy - i
cant get an input mask to give me the right result! Any ideas?
Tanis wrote:
an****@playdar. co.uk wrote:
Hi,
>
I am trying to develop a database that will store dates in the format -
21.02.2006 rather than the standard 21/02/2006.
>
This is because of the SAP feeds that i am pulling in - since SAP
stores dates as dd.mm.yyyy
>
I would just store the dates as text but this makes processing the data
much harder.
>
Does anyone have any suggestions?
>
Regards
>
Andrew Paton
You can use a custom format for the dates.

SELECT tblTableName.Fl dDates, Format([FldDates],"dd\.mm\.yyyy" ) AS
NewDate
FROM tblTableName;
If you are not bothered by the format, I would stick having an input
mask for short date. The users won't know any difference when inputting
as the input mask takes care of the placeholder. Change the format of
the field to Short Date and select Short Date as the input mask. You
can try to create your own input mask, but I have not been successful.

Oct 25 '06 #4

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

Similar topics

6
36947
by: deadlocklegend | last post by:
Hi all, when i set a date field's type (12) to VARCHAR2 or STRING, I get the date (mm/dd/yyyy) correct, but I can never get the time which is always set to 00:00:00 even if i increase the buffer size? Is there anyway to force pro*c to format correctly without using to_char because with to_char i lose the ability to keep track of correct data type. Thanks
2
3230
by: Monica Roman | last post by:
Hello all, I have an Access database linked to SQL Server tables and Views. When I upsized the Access tables all the yes/no fields remained the same, i.e., I see a check mark or not. When I create a yes/no field in SQL Server, I see a 1 or a 0. I would like the new SQL server fields to show me a check mark in the Access front-end. Is there any way of doing this? Also, for data entry purposes, I need to be able to enter mm/yyyy and
2
1727
by: (PeteCresswell) | last post by:
I'm currently presenting certain dates as YYYY/MM because Day=01 is understood. YYYY-MM, however, looks cleaner to my eye. But I can't get it to work with both .Format and .InputMask. They seem to conflict when it's time to save the field's value and an "Illegal format" message pops. Anybody managed to pull this off, or am I fighting nature? --
11
6203
by: carriolan | last post by:
Hi I have a very simple problem indeed, but I am unable to solve it. I am inputing a short date into an unbound text box with a short date input mask. I am in the UK so my date format is dd/mm/yyyy. Everything works superbly well with one exception. Example: Suppose I accidentally keyed in 04/13/2005 the program assumes that I meant 13/04/2005 and swaps the day and the month field around without displaying an error, so the date is...
4
4974
by: Dave | last post by:
Hello - Say I have a 32 bit value in data (v:4, r:4, l:8, p:16) unsigned char data; Now, for portabilities sake, I want to use shifts and masks to access these fields, instead of accessing the bitfields directly. Lets assume v has a value of 2. To view the value of v in data, I need
20
14270
by: keri | last post by:
Hi, I am creating a table where I want to use the date as the primary key - and to automatically create a record for each working date (eg Mon to Fri) until 30 June 2007. Is this possible? I do not want my user to have to create a record for each date. Thanks,
10
5824
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a date format in the table design, such as: mm/dd/yyyy? What I've done for years is to store the date format in date fields, then on the forms, based on their region, I would set the date formats on form_load
1
12246
by: Doug | last post by:
Hi, I created a short date field. The format is dd/mm/yyyy when displayed. The input mask is set to 99/99/00;0 (default, I didn't type anything). If I edit an existing date, say change 12/14/2007 to 12/15/2007, I get an error "the value you entered isn't appropriate for the input mask." I have to delete the "20" in the year to get it accepted, and then it puts the 20 right back. (I have the field set to required.) I changed 99/99/00;0...
1
2855
by: katanah | last post by:
I am using Access, 2003. I have an entry form (single form) with a date field. I would like the user to be able to enter: 115 08 and have Access store and display the date as: 11/05/08, even though the zero was not entered. I am familiar with customizing formats and input masks, but cannot find any hint in the help section of how to achieve this. Is it possible? Maybe using VB (I am a novice at VB)? Thanks
0
9673
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
9522
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
10443
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10216
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
10165
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
10002
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7543
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
6783
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();...
2
3728
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.