Romania - Formatting standards & code snippets
Here is a complete list of standards and formats used in Romania. It includes a full list of ISO codes, number, date, currency, telephone and address formats. You will also get code examples on how to perform the most common formatting operations in Java, C#, JavaScript and PHP. Multiple resource files are made available, mainly the complete list of departments, in different formats such as CSV, XML, JSON, HTML and SQL.
What are the ISO-3166-1 codes for Romania?
- Alpha-2: RO
- Alpha-3: ROU
- Numeric: 642
- Java Locale Code: ro_RO
- .Net CultureInfo Code: ro-RO
- PHP Locale Code: ro_RO
What is the official language in Romania?
- Romanian
What is the date format in Romania?
The date format in Romania is little-endian:
- Format: dd.mm.yyyy
Ex: 03.12.2014 for December 3rd 2014
Formatting a date in Java:
Locale locale = new Locale("ro", "RO");
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy", locale);
sdf.format(new Date());
Formatting a date in C#:
CultureInfo ci = CultureInfo.GetCultureInfo("ro-RO");
DateTime.Now.ToString("dd.MM.yyyy", ci);
Formatting a date in JavaScript:
let date = new Date();
date.toLocaleDateString('ro-RO');
Formatting a date in PHP:
date("d.m.Y");
What is the time format in Romania?
The time format in Romania is mostly 24-hour notation.
- Format: HH:mm[:ss]
Ex: 9:00 for 09:00 AM and 21:00 for 9:00 PM
Formatting time in Java:
Locale locale = new Locale("ro", "RO");
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss", locale);
sdf.format(new Date());
Formatting time in C#:
CultureInfo ci = CultureInfo.GetCultureInfo("ro-RO");
DateTime.Now.ToString("HH:mm:ss", ci);
Formatting time in JavaScript:
let date = new Date();
date.toLocaleTimeString('ro-RO', {hour12: false});
Formatting time in PHP:
date("H:i:s");
What is the numeric format in Romania?
- Format: 999.999.999,99
- Group Size: 3
- Grouping Character: . (dot)
- Decimal Character: , (comma)
Formatting numbers in Java:
Locale locale = new Locale("ro", "RO");
NumberFormat numberFormat = NumberFormat.getNumberInstance(locale);
numberFormat.format(999999999.99d);
Formatting numbers in C#:
double d = 999999999.99d;
d.ToString("n", CultureInfo.GetCultureInfo("ro-RO")));
Formatting numbers in JavaScript:
let number = 999999999.99;
number.toLocaleString('ro-RO');
Formatting numbers in PHP:
$fmt = new NumberFormatter($locale = 'ro_RO', NumberFormatter::DECIMAL);
$fmt->format(999999999.99);
What is the currency format in Romania?
- Format: 999.999.999,99 Lei
- Group Size: 3
- Grouping Character: . (dot)
- Decimal Character: , (comma)
- Currency Symbol: LEI
- Currency Symbol Position: After number
- Currency Name: Romanian Leu - Lei plural (RON)
Formatting currency in Java:
Locale locale = new Locale("ro", "RO");
NumberFormat numberFormat = NumberFormat.getCurrencyInstance(locale);
numberFormat.format(999999999.99d);
Formatting currency in C#:
double d = 999999999.99d;
d.ToString("c", CultureInfo.GetCultureInfo("ro-RO")));
Formatting currency in JavaScript:
let number = 999999999.99;
number.toLocaleString('ro-RO', {currency: 'RON', style: 'currency'});
Formatting currency in PHP:
$fmt = new NumberFormatter($locale = 'ro_RO', NumberFormatter::CURRENCY);
$fmt->format(999999999.99);
Download list of departments for Romania in CSV, JSON, HTML, SQL and XML
List of departments: HTML - Select Control
------------------------
ISO_3166-2 code + name
------------------------
<select>
<option value="RO-AB">Alba</option>
<option value="RO-AR">Arad</option>
<option value="RO-AG">Argeș</option>
<option value="RO-BC">Bacău</option>
<option value="RO-BH">Bihor</option>
<option value="RO-BN">Bistrița-Năsăud</option>
<option value="RO-BT">Botoșani</option>
<option value="RO-BR">Brăila</option>
<option value="RO-BV">Brașov</option>
<option value="RO-B">București</option>
<option value="RO-BZ">Buzău</option>
<option value="RO-CL">Călărași</option>
<option value="RO-CS">Caraș-Severin</option>
<option value="RO-CJ">Cluj</option>
<option value="RO-CT">Constanța</option>
<option value="RO-CV">Covasna</option>
<option value="RO-DB">Dâmbovița</option>
<option value="RO-DJ">Dolj</option>
<option value="RO-GL">Galați</option>
<option value="RO-GR">Giurgiu</option>
<option value="RO-GJ">Gorj</option>
<option value="RO-HR">Harghita</option>
<option value="RO-HD">Hunedoara</option>
<option value="RO-IL">Ialomița</option>
<option value="RO-IS">Iași</option>
<option value="RO-IF">Ilfov</option>
<option value="RO-MM">Maramureș</option>
<option value="RO-MH">Mehedinți</option>
<option value="RO-MS">Mureș</option>
<option value="RO-NT">Neamț</option>
<option value="RO-OT">Olt</option>
<option value="RO-PH">Prahova</option>
<option value="RO-SJ">Sălaj</option>
<option value="RO-SM">Satu Mare</option>
<option value="RO-SB">Sibiu</option>
<option value="RO-SV">Suceava</option>
<option value="RO-TR">Teleorman</option>
<option value="RO-TM">Timiș</option>
<option value="RO-TL">Tulcea</option>
<option value="RO-VL">Vâlcea</option>
<option value="RO-VS">Vaslui</option>
<option value="RO-VN">Vrancea</option>
</select>
List of departments: CSV
code,name
RO-AB,"Alba"
RO-AR,"Arad"
RO-AG,"Argeș"
RO-BC,"Bacău"
RO-BH,"Bihor"
RO-BN,"Bistrița-Năsăud"
RO-BT,"Botoșani"
RO-BR,"Brăila"
RO-BV,"Brașov"
RO-B,"București"
RO-BZ,"Buzău"
RO-CL,"Călărași"
RO-CS,"Caraș-Severin"
RO-CJ,"Cluj"
RO-CT,"Constanța"
RO-CV,"Covasna"
RO-DB,"Dâmbovița"
RO-DJ,"Dolj"
RO-GL,"Galați"
RO-GR,"Giurgiu"
RO-GJ,"Gorj"
RO-HR,"Harghita"
RO-HD,"Hunedoara"
RO-IL,"Ialomița"
RO-IS,"Iași"
RO-IF,"Ilfov"
RO-MM,"Maramureș"
RO-MH,"Mehedinți"
RO-MS,"Mureș"
RO-NT,"Neamț"
RO-OT,"Olt"
RO-PH,"Prahova"
RO-SJ,"Sălaj"
RO-SM,"Satu Mare"
RO-SB,"Sibiu"
RO-SV,"Suceava"
RO-TR,"Teleorman"
RO-TM,"Timiș"
RO-TL,"Tulcea"
RO-VL,"Vâlcea"
RO-VS,"Vaslui"
RO-VN,"Vrancea"
List of departments: JSON
------------------------
ISO-3166-2 code + Name
------------------------
[
{code: "RO-AB", name: "Alba"},
{code: "RO-AR", name: "Arad"},
{code: "RO-AG", name: "Argeș"},
{code: "RO-BC", name: "Bacău"},
{code: "RO-BH", name: "Bihor"},
{code: "RO-BN", name: "Bistrița-Năsăud"},
{code: "RO-BT", name: "Botoșani"},
{code: "RO-BR", name: "Brăila"},
{code: "RO-BV", name: "Brașov"},
{code: "RO-B", name: "București"},
{code: "RO-BZ", name: "Buzău"},
{code: "RO-CL", name: "Călărași"},
{code: "RO-CS", name: "Caraș-Severin"},
{code: "RO-CJ", name: "Cluj"},
{code: "RO-CT", name: "Constanța"},
{code: "RO-CV", name: "Covasna"},
{code: "RO-DB", name: "Dâmbovița"},
{code: "RO-DJ", name: "Dolj"},
{code: "RO-GL", name: "Galați"},
{code: "RO-GR", name: "Giurgiu"},
{code: "RO-GJ", name: "Gorj"},
{code: "RO-HR", name: "Harghita"},
{code: "RO-HD", name: "Hunedoara"},
{code: "RO-IL", name: "Ialomița"},
{code: "RO-IS", name: "Iași"},
{code: "RO-IF", name: "Ilfov"},
{code: "RO-MM", name: "Maramureș"},
{code: "RO-MH", name: "Mehedinți"},
{code: "RO-MS", name: "Mureș"},
{code: "RO-NT", name: "Neamț"},
{code: "RO-OT", name: "Olt"},
{code: "RO-PH", name: "Prahova"},
{code: "RO-SJ", name: "Sălaj"},
{code: "RO-SM", name: "Satu Mare"},
{code: "RO-SB", name: "Sibiu"},
{code: "RO-SV", name: "Suceava"},
{code: "RO-TR", name: "Teleorman"},
{code: "RO-TM", name: "Timiș"},
{code: "RO-TL", name: "Tulcea"},
{code: "RO-VL", name: "Vâlcea"},
{code: "RO-VS", name: "Vaslui"},
{code: "RO-VN", name: "Vrancea"}
]
List of departments: SQL
-- -----------------------------------------------------
-- Table `department`
-- -----------------------------------------------------
DROP TABLE IF EXISTS department;
CREATE TABLE IF NOT EXISTS department (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
code VARCHAR(6) NOT NULL,
name VARCHAR(50) NOT NULL,
PRIMARY KEY (id),
UNIQUE INDEX id_UNIQUE (id ASC),
UNIQUE INDEX code_UNIQUE (code ASC)
) ENGINE = InnoDB;
INSERT INTO department (id, code, name) VALUES (null, 'RO-AB', 'Alba');
INSERT INTO department (id, code, name) VALUES (null, 'RO-AR', 'Arad');
INSERT INTO department (id, code, name) VALUES (null, 'RO-AG', 'Argeș');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BC', 'Bacău');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BH', 'Bihor');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BN', 'Bistrița-Năsăud');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BT', 'Botoșani');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BR', 'Brăila');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BV', 'Brașov');
INSERT INTO department (id, code, name) VALUES (null, 'RO-B', 'București');
INSERT INTO department (id, code, name) VALUES (null, 'RO-BZ', 'Buzău');
INSERT INTO department (id, code, name) VALUES (null, 'RO-CL', 'Călărași');
INSERT INTO department (id, code, name) VALUES (null, 'RO-CS', 'Caraș-Severin');
INSERT INTO department (id, code, name) VALUES (null, 'RO-CJ', 'Cluj');
INSERT INTO department (id, code, name) VALUES (null, 'RO-CT', 'Constanța');
INSERT INTO department (id, code, name) VALUES (null, 'RO-CV', 'Covasna');
INSERT INTO department (id, code, name) VALUES (null, 'RO-DB', 'Dâmbovița');
INSERT INTO department (id, code, name) VALUES (null, 'RO-DJ', 'Dolj');
INSERT INTO department (id, code, name) VALUES (null, 'RO-GL', 'Galați');
INSERT INTO department (id, code, name) VALUES (null, 'RO-GR', 'Giurgiu');
INSERT INTO department (id, code, name) VALUES (null, 'RO-GJ', 'Gorj');
INSERT INTO department (id, code, name) VALUES (null, 'RO-HR', 'Harghita');
INSERT INTO department (id, code, name) VALUES (null, 'RO-HD', 'Hunedoara');
INSERT INTO department (id, code, name) VALUES (null, 'RO-IL', 'Ialomița');
INSERT INTO department (id, code, name) VALUES (null, 'RO-IS', 'Iași');
INSERT INTO department (id, code, name) VALUES (null, 'RO-IF', 'Ilfov');
INSERT INTO department (id, code, name) VALUES (null, 'RO-MM', 'Maramureș');
INSERT INTO department (id, code, name) VALUES (null, 'RO-MH', 'Mehedinți');
INSERT INTO department (id, code, name) VALUES (null, 'RO-MS', 'Mureș');
INSERT INTO department (id, code, name) VALUES (null, 'RO-NT', 'Neamț');
INSERT INTO department (id, code, name) VALUES (null, 'RO-OT', 'Olt');
INSERT INTO department (id, code, name) VALUES (null, 'RO-PH', 'Prahova');
INSERT INTO department (id, code, name) VALUES (null, 'RO-SJ', 'Sălaj');
INSERT INTO department (id, code, name) VALUES (null, 'RO-SM', 'Satu Mare');
INSERT INTO department (id, code, name) VALUES (null, 'RO-SB', 'Sibiu');
INSERT INTO department (id, code, name) VALUES (null, 'RO-SV', 'Suceava');
INSERT INTO department (id, code, name) VALUES (null, 'RO-TR', 'Teleorman');
INSERT INTO department (id, code, name) VALUES (null, 'RO-TM', 'Timiș');
INSERT INTO department (id, code, name) VALUES (null, 'RO-TL', 'Tulcea');
INSERT INTO department (id, code, name) VALUES (null, 'RO-VL', 'Vâlcea');
INSERT INTO department (id, code, name) VALUES (null, 'RO-VS', 'Vaslui');
INSERT INTO department (id, code, name) VALUES (null, 'RO-VN', 'Vrancea');
List of departments: XML
<!-- ISO-3166-2 code + name -->
<?xml version="1.0" encoding="UTF-8"?>
<departments>
<department>
<code>RO-AB</code>
<name>Alba</name>
</department>
<department>
<code>RO-AR</code>
<name>Arad</name>
</department>
<department>
<code>RO-AG</code>
<name>Argeș</name>
</department>
<department>
<code>RO-BC</code>
<name>Bacău</name>
</department>
<department>
<code>RO-BH</code>
<name>Bihor</name>
</department>
<department>
<code>RO-BN</code>
<name>Bistrița-Năsăud</name>
</department>
<department>
<code>RO-BT</code>
<name>Botoșani</name>
</department>
<department>
<code>RO-BR</code>
<name>Brăila</name>
</department>
<department>
<code>RO-BV</code>
<name>Brașov</name>
</department>
<department>
<code>RO-B</code>
<name>București</name>
</department>
<department>
<code>RO-BZ</code>
<name>Buzău</name>
</department>
<department>
<code>RO-CL</code>
<name>Călărași</name>
</department>
<department>
<code>RO-CS</code>
<name>Caraș-Severin</name>
</department>
<department>
<code>RO-CJ</code>
<name>Cluj</name>
</department>
<department>
<code>RO-CT</code>
<name>Constanța</name>
</department>
<department>
<code>RO-CV</code>
<name>Covasna</name>
</department>
<department>
<code>RO-DB</code>
<name>Dâmbovița</name>
</department>
<department>
<code>RO-DJ</code>
<name>Dolj</name>
</department>
<department>
<code>RO-GL</code>
<name>Galați</name>
</department>
<department>
<code>RO-GR</code>
<name>Giurgiu</name>
</department>
<department>
<code>RO-GJ</code>
<name>Gorj</name>
</department>
<department>
<code>RO-HR</code>
<name>Harghita</name>
</department>
<department>
<code>RO-HD</code>
<name>Hunedoara</name>
</department>
<department>
<code>RO-IL</code>
<name>Ialomița</name>
</department>
<department>
<code>RO-IS</code>
<name>Iași</name>
</department>
<department>
<code>RO-IF</code>
<name>Ilfov</name>
</department>
<department>
<code>RO-MM</code>
<name>Maramureș</name>
</department>
<department>
<code>RO-MH</code>
<name>Mehedinți</name>
</department>
<department>
<code>RO-MS</code>
<name>Mureș</name>
</department>
<department>
<code>RO-NT</code>
<name>Neamț</name>
</department>
<department>
<code>RO-OT</code>
<name>Olt</name>
</department>
<department>
<code>RO-PH</code>
<name>Prahova</name>
</department>
<department>
<code>RO-SJ</code>
<name>Sălaj</name>
</department>
<department>
<code>RO-SM</code>
<name>Satu Mare</name>
</department>
<department>
<code>RO-SB</code>
<name>Sibiu</name>
</department>
<department>
<code>RO-SV</code>
<name>Suceava</name>
</department>
<department>
<code>RO-TR</code>
<name>Teleorman</name>
</department>
<department>
<code>RO-TM</code>
<name>Timiș</name>
</department>
<department>
<code>RO-TL</code>
<name>Tulcea</name>
</department>
<department>
<code>RO-VL</code>
<name>Vâlcea</name>
</department>
<department>
<code>RO-VS</code>
<name>Vaslui</name>
</department>
<department>
<code>RO-VN</code>
<name>Vrancea</name>
</department>
</departments>