Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
korrat6055y@netikras Are you hating on italians? As far as I know that's their format for writing dates
-
@korrat almost all European countries use it
Iso dates makes more sense, even in plain text could you easily order those -
A programmer should be ashamed of anything other than yyyy-mm-dd. Why? Because it naturally sorts when used as a comparison value.
I use this in dates in filenames. Its really nice to not have to hunt through files with stupid dates. -
Defaltd25y@Demolishun isn't it also more search performant? Like if you have a massive database and need to search on a specific date.
-
Sumafu22425yI only like the german format dd.MM.yyyy (btw I’m german) and the iso format yyyy-MM-dd, because this two are clearly. If there is a point, then it’s the german format and if there is a minus it is the iso format. But if there is a slash it could be MM/dd/yyyy or dd/MM/yyyy or yyyy/MM/dd or something completely different.
-
@Defaltd I would hope databases would be storing dates in a way that makes it faster. I don't know, I don't do big databases much.
-
dafoex425yI tend to use dd/mm/yyyy for displaying the date, but in personal projects I've used yyyy-mm-dd for file names. Sometimes I've been really pedantic and used yyyy-mm-dd-h-m-s just because I can.
-
For labeling file I usually use YYYY-MM-DD as prefix so it sorts after the dates I've given it everywhere.
I sometimes also just use YYYYMMDD (also used by your smartphone camera).
In some rare cases I also use DDMMYYYY or DD.MM.YY(YY) as suffix for backups that I'll probably never use again anyways. -
Hazarth95065yImo its best to use yyyy-mm-dd because it automatically groups and sorts from Highest priority to lowest. For example if you want to dump logs or files named by date, doing mm-dd-yyyy would sort your files by months, then by days, and lastly by years, which makes no sense to see the january of 2018 next to january of 2019 if you're browsing it...
Same for sorting in the database if for some reason you need to work with dates in string format... -
Parzi86635yAs an American, M/D/Y feels right, as this is how it's written longhand, ex:
August 18, 2019
8/18/2019
however the ISO standard doesn't trip anyone up that I've seen (as long as you're using 4-digit years) so it's a good fit. -
I prefer dd/mm/yyyy since it arranges the number by importance, you usually know year and month it is, day is the most important number
I believe yyyy-mm-dd is the most preferred one in the service layer level. Anyone with me?
joke/meme