Solved

FM - auto enter 4-digit year date Filemaker

Posted on 2011-09-14
2
451 Views
Last Modified: 2012-05-12
How can you auto-fix a 2-digit year to a 4-digit year automatically like you can auto-format phone numbers so you can skip the validation warning?  Looked into EE but only saw how to do it for MS Access.  And, I don't want to just format it to a 4-digit date via the Inspector, but need the date to have a 4-digit date.

0
Comment
Question by:rvfowler2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Will Loving earned 500 total points
ID: 36538548
Well, you would only want to do this if you were sure that all dates were in the current century. For instance if you were entering birth dates for ancestors or the date a house was built, or a deed signed, 3/15/15 could be 1815, 1915 or 2015.

Generally speaking, if you enter a date with a two-digit year, FM will automatically assume that if its in the next 30 years that its in the current century and if it's more than 30 years, it's in the previous one. To quote FileMaker's KB:

FileMaker Pro converts two-digit year dates into four-digit year dates based on the year in which the date is entered, always assuming that the four-digit year date should be in either the next 30 years, or the preceding 70 years. The following table shows how two-digit year dates entered in three different years will convert to four-digit years.

FileMaker will also supply the current year automatically, if you enter only the month and day. For example, if I enter 9/14 for today, FM assumes that that is 9/14/2011. If I enter 9/14/11, it also assumes that it is 9/14/2011. If you talking about cleaning up existing dates, then you should be looking at performing a Replace operation on the affected fields.

For more details, see this FileMaker Knowledgebase article:

http://www.filemaker.com/11help/html/add_view_data.4.21.html
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 36560570
thanks, that helps.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question