<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/historical-pads-v5ejeujdn" -->

---
title: Historical Pads | daily.dev
description: An amusing dive into legacy Visual Basic code found in a decades-old application, where a developer padded year values to four digits to handle 'historical'...
canonical: https://daily.dev/posts/historical-pads-v5ejeujdn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Historical Pads | daily.dev
og:description: An amusing dive into legacy Visual Basic code found in a decades-old application, where a developer padded year values to four digits to handle 'historical'...
og:url: https://daily.dev/posts/historical-pads-v5ejeujdn
og:image: https://api.daily.dev/og/posts/v5EJEuJDn.png
og:image:alt: Historical Pads
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Historical Pads

**[The Daily WTF](https://daily.dev/sources/thedailywtf)** · 1 min read · 1 upvotes · 0 comments

## Summary

An amusing dive into legacy Visual Basic code found in a decades-old application, where a developer padded year values to four digits to handle 'historical' dates. The padding logic is flawed (a year like 14 AD pads to '014' instead of '0014'), and it turns out the program never actually needed to handle pre-1000 dates in the first place, since later code reformatted dates using built-in date types anyway.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thedailywtf.com/articles/historical-pads>

## Similar posts on daily.dev

- [Dating Backwards](https://daily.dev/posts/dating-backwards-iq6lh0p0l) · The Daily WTF · 1 upvotes · 0 comments
- [Mini-post: Dates That Don't Exist](https://daily.dev/posts/mini-post-dates-that-don-t-exist-8rd0cddmt) · Hacker News · 0 upvotes · 0 comments
- [Time Wounds All Heels](https://daily.dev/posts/time-wounds-all-heels-bs3wps1we) · The Daily WTF · 0 upvotes · 0 comments
- [There's Always More History](https://daily.dev/posts/there-s-always-more-history-p1a6nitgv) · Lobsters · 0 upvotes · 0 comments

---

Tags: [#vb](https://daily.dev/tags/vb)

[View this post on daily.dev](https://daily.dev/posts/historical-pads-v5ejeujdn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Historical Pads","url":"https://daily.dev/posts/historical-pads-v5ejeujdn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/historical-pads-v5ejeujdn"},"datePublished":"2026-09-24T10:51:49.862Z","dateModified":"2026-09-24T10:52:03.848Z","description":"An amusing dive into legacy Visual Basic code found in a decades-old application, where a developer padded year values to four digits to handle 'historical'...","image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","thumbnailUrl":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","isAccessibleForFree":true,"articleSection":"The Daily WTF","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Daily WTF","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d21a6aa61a7244d893a3b3284df8e2ef","url":"https://daily.dev/sources/thedailywtf"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/historical-pads-v5ejeujdn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"vb","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Daily WTF","item":"https://daily.dev/sources/thedailywtf"},{"@type":"ListItem","position":3,"name":"Historical Pads"}]}
```

