TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I Hate Entering a Date

1 点作者 jontomato将近 12 年前

2 条评论

krapp将近 12 年前
I don&#x27;t like having to enter a date using a specific format like &#x27;mm&#x2F;dd&#x2F;yyyy&#x27; (as a string, the slashes or dots of course being mandatory as well.) There are libraries whose entire purpose for being is turning datelike strings into timestamps, and anything that doesn&#x27;t parse with strtotime (or what have you) can just return an error.<p>There&#x27;s really no reason i can think of why you can&#x27;t just enter any number of natural language strings other than laziness on the part of the programmers.
drivers99将近 12 年前
Somewhat related: I hate entering a date by using two (credit card expiration) or three (date of birth, etc) different drop-downs.