Arsip: Menampilkan nama bulan dalam bahasa Indonesia dalam fungsi "FormatDateTime"
by myarthur80 in Articles more 14 years ago 2538
Category:
» DateTime & System
Question/Problem/Abstract:
» How we can display long month names in a specific language, eg Indonesia
So, the result will be like this => hari ini tanggal : 25 Nopember 2006
» DateTime & System
Question/Problem/Abstract:
» How we can display long month names in a specific language, eg Indonesia
So, the result will be like this => hari ini tanggal : 25 Nopember 2006
Answer:
Actually, that's quiet simple to do that
You only need to replace the default (Delphi) "LongMonthNames" constants with the preferable any language you desire.
For this example, I want to display a specific date into Indonesian Date Format (dd MMMM yyyy)
Which,
» January is Januari in Indonesian
» February is Februari
» March is Maret
» April is April
» May is Mei
» June is Juni
» July is Juli
» August is Agustus
» September is September (unchanged)
» October is Oktober
» November is Nopember
» December is Desember
The example code would be like this :
-------------------------------------
|
if you want to change the short name of a month with some other language either, you need to change the "ShortMonthNames" like we did above
Enjoy it
ps : the original code is posted @ [ my blog ]
Random Articles
- Menggambar Kurva (Bezier)
- Konvert/copy Database ke Excel
- Procedure Dan Function di Delphi
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
- Image JPG di MySQL
- Free Pascal dan VS Code
- Tip compile di Lazarus ke target CPU 64 Bit (Mac Only)
- Enkripsi Data String dan Stream
- Menampilkan TEKS dengan sudut kemiringan tertentu di canvas
- komponen TMyDateEdit
Last Articles
- Project Group dalam Lazarus
- FastPlaz Database Explorer
- Release: FastPlaz Super Mom v0.12.22
- PascalClass #3: Web Development with Free Pascal
- Makna Pascal di Pascal Indonesia
- Kulgram : Instalasi Lazarus di Perangkat Berbasis ARM
- PascalClass #1: Analisa Database dan Machine Learning
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
- Mengenal OXYGENE – Pascal For .NET
- PascalTalk #5: UX: Research, Design and Engineer
Recent Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 3 months ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 3 months ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 months ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 1 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 8 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 8 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 8 years ago