1918
2023-08-09.jpg (lemmy.ml)
submitted 1 year ago* (last edited 1 year ago) by Samsy@lemmy.ml to c/memes@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] railsdev@programming.dev 9 points 1 year ago

You should be localizing it before displaying to users. Let their browser/platform decide.

Personally I can’t stand the format you’ve shown. I also can’t stand periods being used for phone numbers, e.g. 555.555.5555.

[-] Aloha_Alaska@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

My company has decided to standardized on phone numbers with dots instead of dashes. They’re in email signatures, memos, client proposals. I absolutely hate it and it rubs me the wrong way every time I see it. It’s wrong.

[-] Samsy@lemmy.ml 1 points 1 year ago

In Germany this is standardized, too. DIN 5008 for phone numbers. Areacode Number-extension. For example 0123 456789-01

[-] railsdev@programming.dev 0 points 1 year ago

I use a standardization library for phone numbers. It makes parsing any user input dead easy, storing it as a standard string (can’t think of the standard name) and then outputting in the country’s respective format. I don’t have to inject a bunch of JavaScript crap that’s like “wrong format” and harass users; the backend sorts it all out.

this post was submitted on 09 Aug 2023
1918 points (93.2% liked)

Memes

45754 readers
1217 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS