Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since we're here, what kind of dash do you use for dates? 2023-03-12

I've tried to be more dash-correct, but I've realized there are corner cases that none of these guides address.



ISO 8601 specifies to use a hyphen. In freeform text this also makes sense in that you could use an en-dash to specify a date range: 2023-03-12–2023-04-10. (ISO 8601 uses slashes for time intervals.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: