logo
Login
  • 1Int­roduc­t­io­n
  • 1.1. About Ja­vaSc­rip­t
  • 1.2. HASH fi­les
  • 1.3. JS fi­les in #/A­PI
  • 2Ge­neral func­tion­s
  • 2.1. if(criteria)
  • 2.2. el­se
  • 2.3. func­tio­n name, params
  • 2.4. re­tur­n value
  • 2.5. brea­k
  • 2.6. con­tinue
  • 2.7. ty­peo­f value
  • 2.8. switc­h(value)
  • 2.9. im­por­t filename
  • 2.10. try statements, catch, finally
  • 3Di­rec­tive­s
  • 3.1. Inc­lude di­rec­tive(file)
  • 3.2. Mas­ter di­rec­tive(file)
  • 4Chap­ter func­tion­s
  • 4.1. Chi­nit(name)
  • 4.2. Chs­tep(name)
  • 4.3. Ch­des­tep(name)
  • 4.4. Ch­pus­h(name)
  • 4.5. Ch­pop(name)
  • 5Da­te and ti­me func­tion­s
  • 5.1. da­teDif­f(date1, date2)
  • 5.2. For­mat­tin­g da­tes
  • 5.3. new Da­te(­)
  • 5.4. add­Secon­ds(datetime, seconds)
  • 5.5. add­Minu­te­s(datetime, minutes)
  • 5.6. add­Hour­s(datetime, hours)
  • 5.7. add­Day­s(date, days)
  • 5.8. add­Month­s(datetime, months)
  • 5.9. ad­dYear­s(datetime, years)
  • 6Fi­lesys­te­m func­tion­s
  • 6.1. un­lock­Fol­d­er(path, encryptionKey)
  • 6.2. get­File­s(path, options)
  • 6.3. get­Fol­der(path)
  • 6.4. fi­leE­xist­s(filePath)
  • 6.5. fol­derE­xi­st­s(path)
  • 6.6. crea­teFo­lde­r(folderPath, folderType, folderData)
  • 6.7. de­lete­Fil­e(filePath)
  • 6.8. de­lete­Fol­d­er(folderPath)
  • 6.9. get­Fol­der­Prop­s(folderPath)
  • 6.10. sa­veFol­de­rP­rop­s(folderPath, properties, options)
  • 6.11. va­lida­teF­ile­name(filename)
  • 6.12. ext­ract­Ba­se6­4Ima­ge­s(html)
  • 6.13. ext­rac­tAn­d­Em­bed­Base­64I­mage­s(filePath, propertyFilter)
  • 6.14. crea­teZi­p(content)
  • 6.15. ge­tEm­bed­de­dFi­le(path, id)
  • 6.16. Inc­lude(path, template)
  • 6.17. sa­veEm­bed­d­ed­Fol­der­Fi­le(folderPath, embeddedFilename, data)
  • 6.18. al­low­Rea­d(path, user)
  • 6.19. al­low­Modi­f­y(path, user)
  • 6.20. al­low­Visi­t(path, user)
  • 6.21. ge­tEm­bed­de­dFi­leSi­ze(path, id)
  • 6.22. get­Fol­der­s(path, options)
  • 6.23. ge­tEm­bed­de­dText­Fil­e(path, id, encoding)
  • 6.24. ge­tEm­bed­de­dFol­der­Fi­le(folderPath, embeddedFilename)
  • 6.25. get­File(filepath, metadata)
  • 6.26. getJ­son(filepath)
  • 6.27. link­File(embeddedId, filename)
  • 6.28. list­File­s(path, options)
  • 6.29. list­Fol­de­rs(path, searchPattern, recursive, includeCounters)
  • 6.30. lin­kIma­ge(embeddedId, width, height, mode)
  • 6.31. Ima­ge sca­lin­g
  • 6.32. loa­dEx­cel(filename, column, row, sheet)
  • 6.33. mo­veFi­le(filePath, toPath)
  • 6.34. mo­veFol­de­r(folderPath, destinationPath)
  • 6.35. re­name­Fil­e(filePath, newName)
  • 6.36. sa­veEm­bed­d­ed­File(filePath, embeddedId, data)
  • 6.37. patch­Fil­e(filePath, patchData)
  • 6.38. sa­veFi­le(filePath, data, options)
  • 6.39. sa­veJ­son(filePath, data, ensurePath)
  • 6.40. logJ­son(filePath, data)
  • 7Math func­tion­s
  • 7.1. Math cal­cula­ti­on­s
  • 7.2. Math­.ata­n
  • 7.3. Math.­ran­d­om
  • 7.4. Math.­cos
  • 7.5. Math.­PI
  • 7.6. Math.­sin(value)
  • 7.7. Math.sq­rt(value)
  • 7.8. Math.­tan(angle)
  • 7.9. Math­.ab­s(value)
  • 7.10. Math.­pow(base, exponent)
  • 7.11. Math.­cei­l(value)
  • 7.12. Math.f­lo­or(value)
  • 7.13. Math.­rou­nd(value)
  • 8Ar­ray func­tion­s
  • 8.1. Ar­ray.­con­c­at(list)
  • 8.2. Ar­ray­.eve­r­y(callback)
  • 8.3. Ar­ray.­fil­t­er(filter)
  • 8.4. Ar­ray.­fin­d(filter)
  • 8.5. Ar­ray.­for­Eac­h(callback)
  • 8.6. Ar­ray.g­ro­up­By(key)
  • 8.7. Ar­ray­.in­de­xO­f(item)
  • 8.8. Ar­ray.­joi­n(seperator)
  • 8.9. Ar­ray.­len­gt­h
  • 8.10. Ar­ray.­pop
  • 8.11. Ar­ray.­pus­h(item)
  • 8.12. Ar­ray.­rev­er­se
  • 8.13. Ar­ray.s­hi­ft
  • 8.14. Ar­ray­.isA­rray
  • 8.15. Ar­ray.s­li­ce(start, end)
  • 8.16. Ar­ray.­som­e(evaluator)
  • 8.17. Ar­ray.­sor­t(sorter)
  • 8.18. Ar­ray.sp­l­ice(start, deleteCount, item1...N)
  • 9Net­work func­tion­s
  • 9.1. get­Remo­te­Ip
  • 9.2. down­load­Fro­mUr­l(url)
  • 9.3. down­load­Fro­mUrl6­4(url)
  • 9.4. http­Get(url, headers)
  • 9.5. http­Put(url, data, headers)
  • 9.6. http­Pos­t(url, data, headers)
  • 9.7. http­Form­P­os­t(url, data, headers)
  • 9.8. ge­tUp­load­B­ase6­4(filename)
  • 9.9. ge­tUp­load­s
  • 10Out­put func­tion­s
  • 10.1. pro­ces­s(script, cursor)
  • 10.2. con­sole­.a­sser­t(condition, message)
  • 10.3. set­Con­ten­tDis­posi­t­io­n(type, filename)
  • 10.4. html­ToXl­sx(filename, html)
  • 10.5. html­ToPd­f(filename, html, usePrintCss)
  • 10.6. ba­se6­4(data)
  • 10.7. set­Mime(mime)
  • 10.8. re­pairHt­ml(html)
  • 10.9. wri­te(text)
  • 10.10. set­Resul­tCo­de(code)
  • 10.11. get­Hea­der(name)
  • 10.12. set­Hea­der(name, value)
  • 10.13. re­ques­t
  • 10.14. for­mat(value, format)
  • 10.15. For­mat­tin­g num­ber­s
  • 10.16. HTML.­for­m­at(html)
  • 10.17. JSON.­for­m­at(json)
  • 10.18. re­direc­t(url)
  • 10.19. JSON.­par­s­e(json)
  • 10.20. JSON.st­r­in­gify(value)
  • 10.21. con­sole.­l­og(text)
  • 10.22. set­Cul­tur­e(culture)
  • 10.23. text­ToHt­ml(text)
  • 10.24. Ch­r(code, ...)
  • 10.25. se­tExe­cut­ion­Timeo­ut(timeout)
  • 11St­ring func­tion­s
  • 11.1. gui­d
  • 11.2. guid­2
  • 11.3. md­5(text)
  • 11.4. sha25­6(text)
  • 11.5. Temp­late li­teral (temp­lat­e st­rings­)
  • 11.6. text­Deco­d­e(bytes, encoding)
  • 11.7. tex­tEn­cod­e(text, encoding)
  • 11.8. toHtm­l(text, text2, ...)
  • 11.9. en­code­Fil­ena­me(filename)
  • 11.10. de­code­Fil­ena­me(filename)
  • 11.11. en­codeU­RI(text)
  • 11.12. en­codeU­RI­Com­ponen­t(text)
  • 11.13. htm­lAtt­ri­bu­teEn­cod­e(text)
  • 11.14. htm­lEn­cod­e(text)
  • 11.15. re­moveEm­pty­Line­s(text)
  • 11.16. St­ring.­co­nca­t(string1, string2, ...)
  • 11.17. St­ring­.in­clu­des(search)
  • 11.18. St­ring.­su­bst­rin­g(start, end)
  • 11.19. St­ring­.in­d­exO­f(text)
  • 11.20. St­ring.­la­stIn­dexO­f(text)
  • 11.21. St­ring.­no­rma­lize
  • 11.22. St­ring.­re­pea­t(times)
  • 11.23. St­ring.­re­pla­ce(find, replace)
  • 11.24. St­ring.s­pli­t(seperator)
  • 11.25. St­ring­.en­ds­Wit­h(text)
  • 11.26. St­ring.s­t­arts­Wit­h(text)
  • 11.27. St­ring.t­r­im
  • 11.28. st­rip­Tag­s(html)
  • 11.29. ur­lEn­code(text)
  • 11.30. mark­dow­n(text)
  • 12Va­lida­tio­n func­tion­s
  • 12.1. is­Num­ber(value, minValue, maxValue)
  • 12.2. isSt­rin­g(value, minLength, maxLength)
  • 12.3. areE­qua­l(value1, value2)
  • 12.4. are­NotE­qu­al(value1, value2)
  • 12.5. is­Nul­l(value)
  • 12.6. is­Not­Nul­l(value)
  • 12.7. is­Name(value)
  • 12.8. isE­mai­l(value)
  • 12.9. as­ser­t(description, resultCode)
  • 12.10. is­Date(value)
  • 12.11. is­Date­Tim­e(value)
  • 12.12. isIn­tege­r(value, minValue, maxValue)
  • 13Sha­re func­tion­s
  • 13.1. down­loa­d(file, template, preview)
  • 13.2. get­FileS­h­are­s(path)
  • 13.3. add­FileS­h­are(file, user, access, message)
  • 13.4. re­move­Fil­eS­hare(file, user)
  • 13.5. sen­dEmai­l(file, template, receiver, subject, message)
  • 13.6. down­loa­dE­mbed­ded(file, embeddedId, filename)
  • 13.7. ge­nera­teD­ocu­men­t(file, template)
  • 13.8. send­For­m(form, subject, options)
  • 13.9. add­Fol­der­Sha­re(path, user, access, message)
  • 13.10. get­Fol­der­Sha­res(path)
  • 13.11. re­move­Fol­d­erS­hare(path, user)
  • 13.12. down­load­B­yte­s(data, filename, preview)
  • 14Aut­hen­tic­atio­n
  • 14.1. wri­teJw­t(userinfo)
  • 14.2. de­nyAc­ces­s
  • 14.3. fla­gAc­tiv­ity
  • 14.4. de­leteJw­t
  • 14.5. getP­rofi­l­ePic­ture­Ur­l(user)
  • 14.6. lo­gOu­t
  • 15Mail func­tion­s
  • 15.1. pop3.­pop(options)
  • 15.2. pop3.­del­ete(options, identifier)
  • 15.3. pop3.­get(options, identifier)
  • 15.4. pop3.­get­H­ea­der(options, identifier)
  • 15.5. smtp.­sen­d(config, message)
  • 15.6. imap.­con­n­ec­t(config)
  • 15.7. imap.­get­C­oun­t(session, folder)
  • 15.8. imap.­del­ete(session, message)
  • 15.9. imap.­get­M­es­sage(session, index / uid, headersOnly, folder)
  • 15.10. imap.­dis­c­on­nec­t(connection)
  • 16Coun­ter func­tion­s
  • 16.1. coun­ters­.se­t(name, value, counterFile)
  • 16.2. coun­ters­.ge­t(name, counterFile)
  • 16.3. coun­ters­.­in­c(name, value, counterFile)
  • 17Examp­les
  • 17.1. Bin­din­g
  • 17.2. Da­te and ti­me
  • 17.3. For loop­s
  • 17.4. Lin­king ima­ges and fi­les
  • 17.5. Cus­tom API
  • 17.6. Fi­les and fol­der­s
  • 17.7. Se­curi­ty
  • 17.8. St­ring examp­les
  • 17.9. Web­site­s
  • 17.10. Da­ta
  • 17.11. Cus­tom ser­vice
  1. Home
  2. JavaScript
  3. Examples
  4. Binding
  5. 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