Solved

Looking for example pivot year code used in Y2K

Posted on 2016-10-19
4
62 Views
Last Modified: 2016-10-23
I need to explain Y2K pivot year code and I am looking for an example.
0
Comment
Question by:Alex972
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
ID: 41850808
I think that what you are talking about is what logic does Access use to determine the century when you enter only two digits of year.  The pivot is 29.  So 00-29 default to the 21st century and 30-99 default to the twentieth.

1/1/29 is assumed to be 1/1/2019
1/1/30 is assumed to be 1/1/1930
1
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 41850852
^Yes, also true for Excel.  Up to 12/31/29, the internal date is stored as year 2029 (47483).  On 1/1/30, it is stored as year 1930 (10959).

No points for me; just adding to @PatHartman 's post.
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 41850968
I would also add that years should be displayed as four digits, especially in apps where you will commonly have 20th century and 21st century dates.  If for space reasons you need to limit to 2-digit years, I would suggest a conditional formatting rule that makes the date red if it is 20th century.
1
 

Author Closing Comment

by:Alex972
ID: 41856191
Thanks
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now