logo
Login
  • 1Bin­din­g
  • 1.1. For­ce Ch­rome print me­dia CSS in PD­F
  • 1.2. Set MI­ME by co­de
  • 1.3. Set­Cul­tur­e da­te og num­ber for­mat
  • 1.4. Simp­le bin­din­g
  • 1.5. Bin­ding ar­ray­s
  • 2Da­te and ti­me
  • 2.1. Get to­days da­te
  • 2.2. Com­pare da­te field with to­days da­te
  • 3For loop­s
  • 3.1. Ar­ray examp­les
  • 3.2. For Loop Examp­les
  • 3.3. For loop (ba­sic­)
  • 3.4. List fol­ders (for­)
  • 3.5. Re­cur­sive func­tio­n
  • 4Lin­king ima­ges and fi­les
  • 5Cus­tom API
  • 5.1. Crea­te cus­tom API func­tion­s
  • 5.2. Crea­te cus­tom JWT lo­gin
  • 5.3. Send mail from API func­tio­n
  • 5.4. DIAG­RAM - Sta­tic and dy­namic si­tes.pd­f
  • 5.5. Au­to re­load pa­ge if cac­hed and out­date­d
  • 5.6. Cal­ling ex­ter­nal API­s
  • 5.7. Sen­ding SMS th­rough BulkSMS ga­teway from Doc­ly JS API
  • 6Fi­les and fol­der­s
  • 6.1. Get­Files and Fol­ders - examp­les
  • 6.2. Show do­cument tag­s
  • 6.3. Get ex­ten­sion of fi­lena­me
  • 6.4. Show fi­le si­zes with text and suf­fix
  • 7Se­curi­ty
  • 7.1. Set­ting up CORS for a Doc­ly web­site
  • 8St­ring examp­les
  • 8.1. Joi­ning and sp­lit­ting st­ring­s
  • 9Web­site­s
  • 9.1. Do­cumen­ta­tion in­teg­rati­on examp­le
  • 9.2. Breadc­ru­mb examp­le
  • 9.3. Sen­ding forms by e-mai­l
  • 9.4. Lin­king ima­ges and fi­les in has­h
  • 9.5. Me­nu with ac­tive class (hash­)
  • 9.6. Using pub­lis­hed fol­der searc­h
  • 9.7. Pre­vent Doc­ly chan­ging HREF and SR­C
  • 9.8. How to ma­ke JS and CSS bund­les
  • 9.9. Re­direct to a pa­ge or si­te
  • 9.10. Examp­le of dy­namic si­temap.­xml fi­le
  • 9.11. Set­ting and ad­ding me­ta tags to hea­d
  • 9.12. Re­quest va­riab­les and edit links - examp­le
  • 9.13. Imp­lemen­t­ing cac­hing in an API func­tio­n
  • 10Da­ta
  • 10.1. Sa­ve da­ta to Doc­ly from API-func­tio­n
  • 10.2. Load da­ta from ot­her do­cument­s
  • 10.3. Load da­ta from Ex­cel (XLSX­)
  • 10.4. Im­port da­ta to Doc­ly from Ex­cel (XLSX­)
  • 11Cus­tom ser­vice
  • 11.1. Syn­cing da­ta ser­vice
  1. Home
  2. JavaScript examples
  3. Binding
  4. SetCulture date og number format

SetCulture date og number format Last updated: 27. May 2025

Use the setculture function to format dates and numbers according to a specific culture.

setCulture(code)

Code is either culture LCID number or Name according to Microsoft standard.

See complete list:
https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a

Example setting to norwegian formatting:

#docly.setCulture(1044)#
Designed with love for coding web apps