Vietnam - Formatting standards & code snippets

Here is a complete list of standards and formats used in Vietnam. 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 states, in different formats such as CSV, XML, JSON, HTML and SQL.

What are the ISO-3166-1 codes for Vietnam?

  • Alpha-2: VN
  • Alpha-3: VNM
  • Numeric: 704
  • Java Locale Code: vi_VN
  • .Net CultireInfo Code: vi-VN
  • PHP Locale Code: vi_VN

What is the official language in Vietnam?

  • Vietnamese

What is the date format in Vietnam?

The date format in Vietnam is little-endian:

  • Format: dd/MM/yyyy
    Ex: 31/12/2014 for December 31st 2014. Leading zeroes can be omitted, but not on the year field, hence d/M/yy is also acceptable
How to format dates for Vietnam in Java, C#, PHP, and JavaScript

What is the time format in Vietnam?

The time format in Vietnam is 12-hour notation. The leading zero in hours can be omitted:

  • h:mm[:ss] SA/CH
    Ex: 9:00 CH for 09:00PM, and 9:00 SA for 09:00AM
How to format time for Vietnam in Java, C#, PHP, and JavaScript

What is the numeric format in Vietnam?

    Format: 999.999.999,99

  • Group Size: 3
  • Grouping Character: . (Dot)
  • Decimal Character: , (Comma)
How to format numbers for Vietnam in Java, C#, PHP, and JavaScript

What is the currency format in Vietnam?

    Format: 1.000.000.000 đ

  • Group Size: 3
  • Grouping Character: . (Dot)
  • Decimal Character: Not supported
  • Currency Symbol:
  • Currency Symbol Position: Ater number
  • Currency Name: Vietnamese dong (VND)
How to format currencies for Vietnam in Java, C#, PHP, and JavaScript

Download list of provinces/municipalities for Vietnam in CSV, JSON, HTML, SQL and XML


List of provinces/municipalities: HTML - Select Control

--------------------------
 ISO_3166-2 code + name
------------------------
<select>
	<option value="VN-44">An Giang</option>
	<option value="VN-43">Bà Rịa–Vũng Tàu</option>
	<option value="VN-54">Bắc Giang</option>
	<option value="VN-53">Bắc Kạn</option>
	<option value="VN-55">Bạc Liêu</option>
	<option value="VN-56">Bắc Ninh</option>
	<option value="VN-50">Bến Tre</option>
	<option value="VN-31">Bình Định</option>
	<option value="VN-57">Bình Dương</option>
	<option value="VN-58">Bình Phước</option>
	<option value="VN-40">Bình Thuận</option>
	<option value="VN-59">Cà Mau</option>
	<option value="VN-CT">Cần Thơ</option>
	<option value="VN-04">Cao Bằng</option>
	<option value="VN-DN">Đà Nẵng</option>
	<option value="VN-33">Đắk Lắk</option>
	<option value="VN-72">Đắk Nông</option>
	<option value="VN-71">Điện Biên</option>
	<option value="VN-39">Đồng Nai</option>
	<option value="VN-45">Đồng Tháp</option>
	<option value="VN-30">Gia Lai</option>
	<option value="VN-03">Hà Giang</option>
	<option value="VN-63">Hà Nam</option>
	<option value="VN-HN">Hà Nội</option>
	<option value="VN-23">Hà Tĩnh</option>
	<option value="VN-61">Hải Dương</option>
	<option value="VN-HP">Hải Phòng</option>
	<option value="VN-73">Hậu Giang</option>
	<option value="VN-SG">Hồ Chí Minh</option>
	<option value="VN-14">Hòa Bình</option>
	<option value="VN-66">Hưng Yên</option>
	<option value="VN-34">Khánh Hòa</option>
	<option value="VN-47">Kiên Giang</option>
	<option value="VN-28">Kon Tum</option>
	<option value="VN-01">Lai Châu</option>
	<option value="VN-35">Lâm Đồng</option>
	<option value="VN-09">Lạng Sơn</option>
	<option value="VN-02">Lào Cai</option>
	<option value="VN-41">Long An</option>
	<option value="VN-67">Nam Định</option>
	<option value="VN-22">Nghệ An</option>
	<option value="VN-18">Ninh Bình</option>
	<option value="VN-36">Ninh Thuận</option>
	<option value="VN-68">Phú Thọ</option>
	<option value="VN-32">Phú Yên</option>
	<option value="VN-24">Quảng Bình</option>
	<option value="VN-27">Quảng Nam</option>
	<option value="VN-29">Quảng Ngãi</option>
	<option value="VN-13">Quảng Ninh</option>
	<option value="VN-25">Quảng Trị</option>
	<option value="VN-52">Sóc Trăng</option>
	<option value="VN-05">Sơn La</option>
	<option value="VN-37">Tây Ninh</option>
	<option value="VN-20">Thái Bình</option>
	<option value="VN-69">Thái Nguyên</option>
	<option value="VN-21">Thanh Hóa</option>
	<option value="VN-26">Thừa Thiên–Huế</option>
	<option value="VN-46">Tiền Giang</option>
	<option value="VN-51">Trà Vinh</option>
	<option value="VN-07">Tuyên Quang</option>
	<option value="VN-49">Vĩnh Long</option>
	<option value="VN-70">Vĩnh Phúc</option>
	<option value="VN-06">Yên Bái</option>			
</select>


List of provinces/municipalities: CSV

code,name
VN-44,"An Giang"
VN-43,"Bà Rịa–Vũng Tàu"
VN-54,"Bắc Giang"
VN-53,"Bắc Kạn"
VN-55,"Bạc Liêu"
VN-56,"Bắc Ninh"
VN-50,"Bến Tre"
VN-31,"Bình Định"
VN-57,"Bình Dương"
VN-58,"Bình Phước"
VN-40,"Bình Thuận"
VN-59,"Cà Mau"
VN-CT,"Cần Thơ"
VN-04,"Cao Bằng"
VN-DN,"Đà Nẵng"
VN-33,"Đắk Lắk"
VN-72,"Đắk Nông"
VN-71,"Điện Biên"
VN-39,"Đồng Nai"
VN-45,"Đồng Tháp"
VN-30,"Gia Lai"
VN-03,"Hà Giang"
VN-63,"Hà Nam"
VN-HN,"Hà Nội"
VN-23,"Hà Tĩnh"
VN-61,"Hải Dương"
VN-HP,"Hải Phòng"
VN-73,"Hậu Giang"
VN-SG,"Hồ Chí Minh"
VN-14,"Hòa Bình"
VN-66,"Hưng Yên"
VN-34,"Khánh Hòa"
VN-47,"Kiên Giang"
VN-28,"Kon Tum"
VN-01,"Lai Châu"
VN-35,"Lâm Đồng"
VN-09,"Lạng Sơn"
VN-02,"Lào Cai"
VN-41,"Long An"
VN-67,"Nam Định"
VN-22,"Nghệ An"
VN-18,"Ninh Bình"
VN-36,"Ninh Thuận"
VN-68,"Phú Thọ"
VN-32,"Phú Yên"
VN-24,"Quảng Bình"
VN-27,"Quảng Nam"
VN-29,"Quảng Ngãi"
VN-13,"Quảng Ninh"
VN-25,"Quảng Trị"
VN-52,"Sóc Trăng"
VN-05,"Sơn La"
VN-37,"Tây Ninh"
VN-20,"Thái Bình"
VN-69,"Thái Nguyên"
VN-21,"Thanh Hóa"
VN-26,"Thừa Thiên–Huế"
VN-46,"Tiền Giang"
VN-51,"Trà Vinh"
VN-07,"Tuyên Quang"
VN-49,"Vĩnh Long"
VN-70,"Vĩnh Phúc"
VN-06,"Yên Bái"

List of provinces/municipalities: JSON

------------------------
 ISO-3166-2 code + Name
------------------------
[
	{code: "VN-44", name: "An Giang"},
	{code: "VN-43", name: "Bà Rịa–Vũng Tàu"},
	{code: "VN-54", name: "Bắc Giang"},
	{code: "VN-53", name: "Bắc Kạn"},
	{code: "VN-55", name: "Bạc Liêu"},
	{code: "VN-56", name: "Bắc Ninh"},
	{code: "VN-50", name: "Bến Tre"},
	{code: "VN-31", name: "Bình Định"},
	{code: "VN-57", name: "Bình Dương"},
	{code: "VN-58", name: "Bình Phước"},
	{code: "VN-40", name: "Bình Thuận"},
	{code: "VN-59", name: "Cà Mau"},
	{code: "VN-CT", name: "Cần Thơ"},
	{code: "VN-04", name: "Cao Bằng"},
	{code: "VN-DN", name: "Đà Nẵng"},
	{code: "VN-33", name: "Đắk Lắk"},
	{code: "VN-72", name: "Đắk Nông"},
	{code: "VN-71", name: "Điện Biên"},
	{code: "VN-39", name: "Đồng Nai"},
	{code: "VN-45", name: "Đồng Tháp"},
	{code: "VN-30", name: "Gia Lai"},
	{code: "VN-03", name: "Hà Giang"},
	{code: "VN-63", name: "Hà Nam"},
	{code: "VN-HN", name: "Hà Nội"},
	{code: "VN-23", name: "Hà Tĩnh"},
	{code: "VN-61", name: "Hải Dương"},
	{code: "VN-HP", name: "Hải Phòng"},
	{code: "VN-73", name: "Hậu Giang"},
	{code: "VN-SG", name: "Hồ Chí Minh"},
	{code: "VN-14", name: "Hòa Bình"},
	{code: "VN-66", name: "Hưng Yên"},
	{code: "VN-34", name: "Khánh Hòa"},
	{code: "VN-47", name: "Kiên Giang"},
	{code: "VN-28", name: "Kon Tum"},
	{code: "VN-01", name: "Lai Châu"},
	{code: "VN-35", name: "Lâm Đồng"},
	{code: "VN-09", name: "Lạng Sơn"},
	{code: "VN-02", name: "Lào Cai"},
	{code: "VN-41", name: "Long An"},
	{code: "VN-67", name: "Nam Định"},
	{code: "VN-22", name: "Nghệ An"},
	{code: "VN-18", name: "Ninh Bình"},
	{code: "VN-36", name: "Ninh Thuận"},
	{code: "VN-68", name: "Phú Thọ"},
	{code: "VN-32", name: "Phú Yên"},
	{code: "VN-24", name: "Quảng Bình"},
	{code: "VN-27", name: "Quảng Nam"},
	{code: "VN-29", name: "Quảng Ngãi"},
	{code: "VN-13", name: "Quảng Ninh"},
	{code: "VN-25", name: "Quảng Trị"},
	{code: "VN-52", name: "Sóc Trăng"},
	{code: "VN-05", name: "Sơn La"},
	{code: "VN-37", name: "Tây Ninh"},
	{code: "VN-20", name: "Thái Bình"},
	{code: "VN-69", name: "Thái Nguyên"},
	{code: "VN-21", name: "Thanh Hóa"},
	{code: "VN-26", name: "Thừa Thiên–Huế"},
	{code: "VN-46", name: "Tiền Giang"},
	{code: "VN-51", name: "Trà Vinh"},
	{code: "VN-07", name: "Tuyên Quang"},
	{code: "VN-49", name: "Vĩnh Long"},
	{code: "VN-70", name: "Vĩnh Phúc"},
	{code: "VN-06", name: "Yên Bái"}			
]

List of provinces/municipalities: SQL

-- -----------------------------------------------------
-- Table `province`
-- -----------------------------------------------------
DROP TABLE IF EXISTS province;

CREATE TABLE IF NOT EXISTS province (
  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 province (id, code, name) VALUES (null, 'VN-44', 'An Giang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-43', 'Bà Rịa–Vũng Tàu');
INSERT INTO province (id, code, name) VALUES (null, 'VN-54', 'Bắc Giang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-53', 'Bắc Kạn');
INSERT INTO province (id, code, name) VALUES (null, 'VN-55', 'Bạc Liêu');
INSERT INTO province (id, code, name) VALUES (null, 'VN-56', 'Bắc Ninh');
INSERT INTO province (id, code, name) VALUES (null, 'VN-50', 'Bến Tre');
INSERT INTO province (id, code, name) VALUES (null, 'VN-31', 'Bình Định');
INSERT INTO province (id, code, name) VALUES (null, 'VN-57', 'Bình Dương');
INSERT INTO province (id, code, name) VALUES (null, 'VN-58', 'Bình Phước');
INSERT INTO province (id, code, name) VALUES (null, 'VN-40', 'Bình Thuận');
INSERT INTO province (id, code, name) VALUES (null, 'VN-59', 'Cà Mau');
INSERT INTO province (id, code, name) VALUES (null, 'VN-CT', 'Cần Thơ');
INSERT INTO province (id, code, name) VALUES (null, 'VN-04', 'Cao Bằng');
INSERT INTO province (id, code, name) VALUES (null, 'VN-DN', 'Đà Nẵng');
INSERT INTO province (id, code, name) VALUES (null, 'VN-33', 'Đắk Lắk');
INSERT INTO province (id, code, name) VALUES (null, 'VN-72', 'Đắk Nông');
INSERT INTO province (id, code, name) VALUES (null, 'VN-71', 'Điện Biên');
INSERT INTO province (id, code, name) VALUES (null, 'VN-39', 'Đồng Nai');
INSERT INTO province (id, code, name) VALUES (null, 'VN-45', 'Đồng Tháp');
INSERT INTO province (id, code, name) VALUES (null, 'VN-30', 'Gia Lai');
INSERT INTO province (id, code, name) VALUES (null, 'VN-03', 'Hà Giang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-63', 'Hà Nam');
INSERT INTO province (id, code, name) VALUES (null, 'VN-HN', 'Hà Nội');
INSERT INTO province (id, code, name) VALUES (null, 'VN-23', 'Hà Tĩnh');
INSERT INTO province (id, code, name) VALUES (null, 'VN-61', 'Hải Dương');
INSERT INTO province (id, code, name) VALUES (null, 'VN-HP', 'Hải Phòng');
INSERT INTO province (id, code, name) VALUES (null, 'VN-73', 'Hậu Giang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-SG', 'Hồ Chí Minh');
INSERT INTO province (id, code, name) VALUES (null, 'VN-14', 'Hòa Bình');
INSERT INTO province (id, code, name) VALUES (null, 'VN-66', 'Hưng Yên');
INSERT INTO province (id, code, name) VALUES (null, 'VN-34', 'Khánh Hòa');
INSERT INTO province (id, code, name) VALUES (null, 'VN-47', 'Kiên Giang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-28', 'Kon Tum');
INSERT INTO province (id, code, name) VALUES (null, 'VN-01', 'Lai Châu');
INSERT INTO province (id, code, name) VALUES (null, 'VN-35', 'Lâm Đồng');
INSERT INTO province (id, code, name) VALUES (null, 'VN-09', 'Lạng Sơn');
INSERT INTO province (id, code, name) VALUES (null, 'VN-02', 'Lào Cai');
INSERT INTO province (id, code, name) VALUES (null, 'VN-41', 'Long An');
INSERT INTO province (id, code, name) VALUES (null, 'VN-67', 'Nam Định');
INSERT INTO province (id, code, name) VALUES (null, 'VN-22', 'Nghệ An');
INSERT INTO province (id, code, name) VALUES (null, 'VN-18', 'Ninh Bình');
INSERT INTO province (id, code, name) VALUES (null, 'VN-36', 'Ninh Thuận');
INSERT INTO province (id, code, name) VALUES (null, 'VN-68', 'Phú Thọ');
INSERT INTO province (id, code, name) VALUES (null, 'VN-32', 'Phú Yên');
INSERT INTO province (id, code, name) VALUES (null, 'VN-24', 'Quảng Bình');
INSERT INTO province (id, code, name) VALUES (null, 'VN-27', 'Quảng Nam');
INSERT INTO province (id, code, name) VALUES (null, 'VN-29', 'Quảng Ngãi');
INSERT INTO province (id, code, name) VALUES (null, 'VN-13', 'Quảng Ninh');
INSERT INTO province (id, code, name) VALUES (null, 'VN-25', 'Quảng Trị');
INSERT INTO province (id, code, name) VALUES (null, 'VN-52', 'Sóc Trăng');
INSERT INTO province (id, code, name) VALUES (null, 'VN-05', 'Sơn La');
INSERT INTO province (id, code, name) VALUES (null, 'VN-37', 'Tây Ninh');
INSERT INTO province (id, code, name) VALUES (null, 'VN-20', 'Thái Bình');
INSERT INTO province (id, code, name) VALUES (null, 'VN-69', 'Thái Nguyên');
INSERT INTO province (id, code, name) VALUES (null, 'VN-21', 'Thanh Hóa');
INSERT INTO province (id, code, name) VALUES (null, 'VN-26', 'Thừa Thiên–Huế');
INSERT INTO province (id, code, name) VALUES (null, 'VN-46', 'Tiền Giang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-51', 'Trà Vinh');
INSERT INTO province (id, code, name) VALUES (null, 'VN-07', 'Tuyên Quang');
INSERT INTO province (id, code, name) VALUES (null, 'VN-49', 'Vĩnh Long');
INSERT INTO province (id, code, name) VALUES (null, 'VN-70', 'Vĩnh Phúc');
INSERT INTO province (id, code, name) VALUES (null, 'VN-06', 'Yên Bái');

List of provinces/municipalities: XML

<!-- ISO 3166-2 code + name - French -->
<?xml version="1.0" encoding="UTF-8"?>
<provinces>
	<province>
		<code>VN-44</code>
		<name>An Giang</name>
	</province>
	<province>
		<code>VN-43</code>
		<name>Bà Rịa–Vũng Tàu</name>
	</province>
	<province>
		<code>VN-54</code>
		<name>Bắc Giang</name>
	</province>
	<province>
		<code>VN-53</code>
		<name>Bắc Kạn</name>
	</province>
	<province>
		<code>VN-55</code>
		<name>Bạc Liêu</name>
	</province>
	<province>
		<code>VN-56</code>
		<name>Bắc Ninh</name>
	</province>
	<province>
		<code>VN-50</code>
		<name>Bến Tre</name>
	</province>
	<province>
		<code>VN-31</code>
		<name>Bình Định</name>
	</province>
	<province>
		<code>VN-57</code>
		<name>Bình Dương</name>
	</province>
	<province>
		<code>VN-58</code>
		<name>Bình Phước</name>
	</province>
	<province>
		<code>VN-40</code>
		<name>Bình Thuận</name>
	</province>
	<province>
		<code>VN-59</code>
		<name>Cà Mau</name>
	</province>
	<province>
		<code>VN-CT</code>
		<name>Cần Thơ</name>
	</province>
	<province>
		<code>VN-04</code>
		<name>Cao Bằng</name>
	</province>
	<province>
		<code>VN-DN</code>
		<name>Đà Nẵng</name>
	</province>
	<province>
		<code>VN-33</code>
		<name>Đắk Lắk</name>
	</province>
	<province>
		<code>VN-72</code>
		<name>Đắk Nông</name>
	</province>
	<province>
		<code>VN-71</code>
		<name>Điện Biên</name>
	</province>
	<province>
		<code>VN-39</code>
		<name>Đồng Nai</name>
	</province>
	<province>
		<code>VN-45</code>
		<name>Đồng Tháp</name>
	</province>
	<province>
		<code>VN-30</code>
		<name>Gia Lai</name>
	</province>
	<province>
		<code>VN-03</code>
		<name>Hà Giang</name>
	</province>
	<province>
		<code>VN-63</code>
		<name>Hà Nam</name>
	</province>
	<province>
		<code>VN-HN</code>
		<name>Hà Nội</name>
	</province>
	<province>
		<code>VN-23</code>
		<name>Hà Tĩnh</name>
	</province>
	<province>
		<code>VN-61</code>
		<name>Hải Dương</name>
	</province>
	<province>
		<code>VN-HP</code>
		<name>Hải Phòng</name>
	</province>
	<province>
		<code>VN-73</code>
		<name>Hậu Giang</name>
	</province>
	<province>
		<code>VN-SG</code>
		<name>Hồ Chí Minh</name>
	</province>
	<province>
		<code>VN-14</code>
		<name>Hòa Bình</name>
	</province>
	<province>
		<code>VN-66</code>
		<name>Hưng Yên</name>
	</province>
	<province>
		<code>VN-34</code>
		<name>Khánh Hòa</name>
	</province>
	<province>
		<code>VN-47</code>
		<name>Kiên Giang</name>
	</province>
	<province>
		<code>VN-28</code>
		<name>Kon Tum</name>
	</province>
	<province>
		<code>VN-01</code>
		<name>Lai Châu</name>
	</province>
	<province>
		<code>VN-35</code>
		<name>Lâm Đồng</name>
	</province>
	<province>
		<code>VN-09</code>
		<name>Lạng Sơn</name>
	</province>
	<province>
		<code>VN-02</code>
		<name>Lào Cai</name>
	</province>
	<province>
		<code>VN-41</code>
		<name>Long An</name>
	</province>
	<province>
		<code>VN-67</code>
		<name>Nam Định</name>
	</province>
	<province>
		<code>VN-22</code>
		<name>Nghệ An</name>
	</province>
	<province>
		<code>VN-18</code>
		<name>Ninh Bình</name>
	</province>
	<province>
		<code>VN-36</code>
		<name>Ninh Thuận</name>
	</province>
	<province>
		<code>VN-68</code>
		<name>Phú Thọ</name>
	</province>
	<province>
		<code>VN-32</code>
		<name>Phú Yên</name>
	</province>
	<province>
		<code>VN-24</code>
		<name>Quảng Bình</name>
	</province>
	<province>
		<code>VN-27</code>
		<name>Quảng Nam</name>
	</province>
	<province>
		<code>VN-29</code>
		<name>Quảng Ngãi</name>
	</province>
	<province>
		<code>VN-13</code>
		<name>Quảng Ninh</name>
	</province>
	<province>
		<code>VN-25</code>
		<name>Quảng Trị</name>
	</province>
	<province>
		<code>VN-52</code>
		<name>Sóc Trăng</name>
	</province>
	<province>
		<code>VN-05</code>
		<name>Sơn La</name>
	</province>
	<province>
		<code>VN-37</code>
		<name>Tây Ninh</name>
	</province>
	<province>
		<code>VN-20</code>
		<name>Thái Bình</name>
	</province>
	<province>
		<code>VN-69</code>
		<name>Thái Nguyên</name>
	</province>
	<province>
		<code>VN-21</code>
		<name>Thanh Hóa</name>
	</province>
	<province>
		<code>VN-26</code>
		<name>Thừa Thiên–Huế</name>
	</province>
	<province>
		<code>VN-46</code>
		<name>Tiền Giang</name>
	</province>
	<province>
		<code>VN-51</code>
		<name>Trà Vinh</name>
	</province>
	<province>
		<code>VN-07</code>
		<name>Tuyên Quang</name>
	</province>
	<province>
		<code>VN-49</code>
		<name>Vĩnh Long</name>
	</province>
	<province>
		<code>VN-70</code>
		<name>Vĩnh Phúc</name>
	</province>
	<province>
		<code>VN-06</code>
		<name>Yên Bái</name>
	</province>												
</provinces>