Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Disable localisation for FormatDateTime ?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
RDP viewer in Pascal
by
ArminLinder
[
Today
at 03:28:09 pm]
Chinese Fonts in fpPDF
by
paweld
[
Today
at 03:19:01 pm]
Making a plea :)
by
BrunoK
[
Today
at 03:12:03 pm]
Besides TForm is there a ...
by
vfclists
[
Today
at 03:11:15 pm]
Why MaxDouble does not eq...
by
BrunoK
[
Today
at 02:54:30 pm]
Optional parameter in fun...
by
carl_caulkett
[
Today
at 02:23:52 pm]
FpcUpDeluxe seems to have...
by
cdbc
[
Today
at 02:12:15 pm]
Q Win SHBrowseForFolder A...
by
d7_2_laz
[
Today
at 01:32:07 pm]
Error printing to zebra p...
by
magleft
[
Today
at 01:07:15 pm]
String in binary file
by
Thaddy
[
Today
at 12:59:02 pm]
Use mORMot2 to export PDF...
by
dbannon
[
Today
at 12:33:49 pm]
[Solved] Shell controls s...
by
d2010
[
Today
at 12:13:47 pm]
TPairSplitter control lea...
by
wp
[
Today
at 11:31:27 am]
Xtensa-freertos wiki
by
ccrause
[
Today
at 09:48:49 am]
Building FPC 3.2.2 on Deb...
by
MarkMLl
[
Today
at 09:27:48 am]
Win SHBrowseForFolder API...
by
d2010
[
Today
at 09:02:38 am]
Class helpers cannot have...
by
Thaddy
[
Today
at 08:51:02 am]
Not able to install "fpc-...
by
dbannon
[
Today
at 07:19:07 am]
[Solved] Package Laz_Syna...
by
Fibonacci
[
Today
at 03:40:50 am]
Reintroduce events and pr...
by
Joanna
[
Today
at 01:58:28 am]
About $ and Cents - Dbf L...
by
Fibonacci
[
Today
at 12:01:43 am]
Is there a TPanel substit...
by
Sieben
[October 04, 2024, 11:47:42 pm]
FPC 3.2.2 / Lazarus 2.2.6...
by
Fred vS
[October 04, 2024, 09:58:43 pm]
Why I can not set affinit...
by
440bx
[October 04, 2024, 09:28:07 pm]
Feature announcement: Imp...
by
corpsman
[October 04, 2024, 08:48:30 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Disable localisation for FormatDateTime ? (Read 221 times)
Nitorami
Hero Member
Posts: 507
Disable localisation for FormatDateTime ?
«
on:
September 11, 2024, 04:55:39 pm »
Simple question: I am in Germany but need to FormatDateTime() to work with english month names always. Can I disable the localisation (windows) or force the language manually ? Not related to LCL, just for reading/writing text files.
«
Last Edit: September 11, 2024, 05:04:13 pm by Nitorami
»
Logged
Thaddy
Hero Member
Posts: 15646
Censorship about opinions does not belong here.
Re: Disable localisation for DateTimeFormat ?
«
Reply #1 on:
September 11, 2024, 05:04:58 pm »
You can edit the FormatSettings variable (global) or simply save the formatsettings and derive from that and do it locally (TFormatSettings).
Logged
If I smell bad code it usually is bad code and that includes my own code.
Nitorami
Hero Member
Posts: 507
Re: Disable localisation for FormatDateTime ?
«
Reply #2 on:
September 11, 2024, 05:09:21 pm »
I thought of this option but hoped there was a simpler way by setting a global language identifier of some sort
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Disable localisation for FormatDateTime ?
TinyPortal
© 2005-2018