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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
equivalent to C/C++ "offs...
by
Fibonacci
[
Today
at 02:44:35 am]
Printing on HP Smart Tank
by
jamie
[
Today
at 01:55:25 am]
TCollection wiki entry
by
korba812
[
Today
at 12:20:33 am]
Problems with creating a ...
by
jamie
[
Today
at 12:10:44 am]
UI app to work with SQLit...
by
Tomu
[
Today
at 12:06:09 am]
Fpcupdeluxe
by
cdbc
[July 10, 2026, 11:26:16 pm]
Source Editor Collapsed P...
by
Martin_fr
[July 10, 2026, 11:18:30 pm]
val return code
by
Paolo
[July 10, 2026, 10:58:32 pm]
Gtk3 becomes default widg...
by
PascalDragon
[July 10, 2026, 09:59:25 pm]
Seeking performance feedb...
by
Xenno
[July 10, 2026, 04:31:34 pm]
Pls support Double Comman...
by
Alexx2000
[July 10, 2026, 04:02:56 pm]
Ignoring Exceptions - Hit...
by
Martin_fr
[July 10, 2026, 03:50:47 pm]
Lazarus 4.6 may erase you...
by
Benoni_Edin
[July 10, 2026, 01:22:02 pm]
Greyed out controls?
by
LeP
[July 10, 2026, 12:21:25 pm]
Creating binary
by
marcov
[July 10, 2026, 11:25:17 am]
is there PDS reader/expor...
by
cdbc
[July 10, 2026, 08:59:50 am]
Hello. I'm new to this co...
by
onionmixer
[July 10, 2026, 03:55:53 am]
Selecting from a list of ...
by
J-G
[July 09, 2026, 11:38:39 pm]
Help needed on how to do ...
by
paweld
[July 09, 2026, 10:06:31 pm]
A recreation of the class...
by
count
[July 09, 2026, 08:53:45 pm]
GTK3 is now the default w...
by
bonmario
[July 09, 2026, 07:48:59 pm]
using bass to play sounds
by
Thaddy
[July 09, 2026, 05:57:43 pm]
DDE
by
Thaddy
[July 09, 2026, 05:01:24 pm]
FPC Unleashed (async/awai...
by
Thaddy
[July 09, 2026, 04:38:17 pm]
String constants being di...
by
mihaisheng
[July 09, 2026, 12:25:38 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Disable localisation for FormatDateTime ? (Read 491 times)
Nitorami
Hero Member
Posts: 605
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: 19386
Glad to be alive.
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
objects are fine constructs. You can even initialize them with constructors.
Nitorami
Hero Member
Posts: 605
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