Argentina - Formatting standards & code snippets
Here is a complete list of standards and formats used in Argentina. 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 Argentina?
- Alpha-2: AR
- Alpha-3: ARG
- Numeric: 032
- Java Locale Code: es_AR
- .Net CultureInfo Code: es-AR
- PHP Locale Code: es_AR
What is the official language in Argentina?
- Spanish
What is the date format in Argentina?
The date format in Argentina is little-endian:
- Format: d/mm/yyyy
Ex: 3/12/2014 for December 3rd 2014
Formatting a date in Java:
Locale locale = new Locale("es", "AR");
SimpleDateFormat sdf = new SimpleDateFormat("d/MM/yyyy", locale);
sdf.format(new Date());
Formatting a date in C#:
CultureInfo ci = CultureInfo.GetCultureInfo("es-AR");
DateTime.Now.ToString("d/MM/yyyy", ci);
Formatting a date in JavaScript:
let date = new Date();
date.toLocaleDateString('es-AR');
Formatting a date in PHP:
date("j/n/Y")
What is the time format in Argentina?
The time format in Argentina is 24-hour notation in most cases.
- Format: HH:mm[:ss]
Ex: 09:00 for 09:00AM, and 21:00 for 09:00PM
Formatting time in Java:
Locale locale = new Locale("es", "AR");
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss", locale);
sdf.format(new Date());
Formatting time in C#:
CultureInfo ci = CultureInfo.GetCultureInfo("es-AR");
DateTime.Now.ToString("HH:mm:ss", ci);
Formatting time in JavaScript:
let time = new Date();
date.toLocaleTimeString('es-AR', {hour12: false});
Formatting time in PHP:
date("H:i:s");
What is the numeric format in Argentina?
- Format: 999.999.999,99
- Group Size: 3
- Grouping Character: . (dot)
- Decimal Character: , (comma)
Formatting numbers in Java:
Locale locale = new Locale("es", "AR");
NumberFormat numberFormat = NumberFormat.getNumberInstance(locale);
numberFormat.format(999999999.99d);
Formatting numbers in C#:
double d = 999999999.99d;
d.ToString("n", CultureInfo.GetCultureInfo("es-AR")));
Formatting numbers in JavaScript:
let number = 999999999.99;
number.toLocaleString('es-AR');
Formatting numbers in PHP:
$fmt = new NumberFormatter($locale = 'es_AR', NumberFormatter::DECIMAL);
$fmt->format(999999999.99);
What is the currency format in Argentina?
- Format: $ 999.999.999,99
- Group Size: 3
- Grouping Character: . (dot)
- Decimal Character: , (comma)
- Currency Symbol: $
- Currency Symbol Position: Before number
- Currency Name: Argentine Peso (ARS)
Formatting currency in Java:
Locale locale = new Locale("es", "AR");
NumberFormat numberFormat = NumberFormat.getCurrencyInstance(locale);
numberFormat.format(999999999.99d);
Formatting currency in C#:
double d = 999999999.99d;
d.ToString("c", CultureInfo.GetCultureInfo("es-AR")));
Formatting currency in JavaScript:
let number = 999999999.99;
number.toLocaleString('es-AR', {currency: 'ARS', style: 'currency'});
Formatting currency in PHP:
$fmt = new NumberFormatter($locale = 'es_AR', NumberFormatter::CURRENCY);
$fmt->format(999999999.99);
Download list of provinces for Argentina in CSV, JSON, HTML, SQL and XML
List of provinces: HTML - Select Control
------------------------
ISO_3166-2 code + name
------------------------
<select>
<option value="AR-B">Buenos Aires</option>
<option value="AR-K">Catamarca</option>
<option value="AR-H">Chaco</option>
<option value="AR-U">Chubut</option>
<option value="AR-C">Ciudad Autónoma de Buenos Aires</option>
<option value="AR-X">Córdoba</option>
<option value="AR-W">Corrientes</option>
<option value="AR-E">Entre Ríos</option>
<option value="AR-P">Formosa</option>
<option value="AR-Y">Jujuy</option>
<option value="AR-L">La Pampa</option>
<option value="AR-F">La Rioja</option>
<option value="AR-M">Mendoza</option>
<option value="AR-N">Misiones</option>
<option value="AR-Q">Neuquén</option>
<option value="AR-R">Río Negro</option>
<option value="AR-A">Salta</option>
<option value="AR-J">San Juan</option>
<option value="AR-D">San Luis</option>
<option value="AR-Z">Santa Cruz</option>
<option value="AR-S">Santa Fe</option>
<option value="AR-G">Santiago del Estero</option>
<option value="AR-V">Tierra del Fuego</option>
<option value="AR-T">Tucumán</option>
</select>
List of provinces: CSV
code,name
AR-B,"Buenos Aires"
AR-K,"Catamarca"
AR-H,"Chaco"
AR-U,"Chubut"
AR-C,"Ciudad Autónoma de Buenos Aires"
AR-X,"Córdoba"
AR-W,"Corrientes"
AR-E,"Entre Ríos"
AR-P,"Formosa"
AR-Y,"Jujuy"
AR-L,"La Pampa"
AR-F,"La Rioja"
AR-M,"Mendoza"
AR-N,"Misiones"
AR-Q,"Neuquén"
AR-R,"Río Negro"
AR-A,"Salta"
AR-J,"San Juan"
AR-D,"San Luis"
AR-Z,"Santa Cruz"
AR-S,"Santa Fe"
AR-G,"Santiago del Estero"
AR-V,"Tierra del Fuego"
AR-T,"Tucumán"
List of provinces: JSON
------------------------
ISO-3166-2 code + Name
------------------------
[
{code: "AR-B", name: "Buenos Aires"},
{code: "AR-K", name: "Catamarca"},
{code: "AR-H", name: "Chaco"},
{code: "AR-U", name: "Chubut"},
{code: "AR-C", name: "Ciudad Autónoma de Buenos Aires"},
{code: "AR-X", name: "Córdoba"},
{code: "AR-W", name: "Corrientes"},
{code: "AR-E", name: "Entre Ríos"},
{code: "AR-P", name: "Formosa"},
{code: "AR-Y", name: "Jujuy"},
{code: "AR-L", name: "La Pampa"},
{code: "AR-F", name: "La Rioja"},
{code: "AR-M", name: "Mendoza"},
{code: "AR-N", name: "Misiones"},
{code: "AR-Q", name: "Neuquén"},
{code: "AR-R", name: "Río Negro"},
{code: "AR-A", name: "Salta"},
{code: "AR-J", name: "San Juan"},
{code: "AR-D", name: "San Luis"},
{code: "AR-Z", name: "Santa Cruz"},
{code: "AR-S", name: "Santa Fe"},
{code: "AR-G", name: "Santiago del Estero"},
{code: "AR-V", name: "Tierra del Fuego"},
{code: "AR-T", name: "Tucumán"}
]
List of provinces: 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, 'AR-B', 'Buenos Aires');
INSERT INTO province (id, code, name) VALUES (null, 'AR-K', 'Catamarca');
INSERT INTO province (id, code, name) VALUES (null, 'AR-H', 'Chaco');
INSERT INTO province (id, code, name) VALUES (null, 'AR-U', 'Chubut');
INSERT INTO province (id, code, name) VALUES (null, 'AR-C', 'Ciudad Autónoma de Buenos Aires');
INSERT INTO province (id, code, name) VALUES (null, 'AR-X', 'Córdoba');
INSERT INTO province (id, code, name) VALUES (null, 'AR-W', 'Corrientes');
INSERT INTO province (id, code, name) VALUES (null, 'AR-E', 'Entre Ríos');
INSERT INTO province (id, code, name) VALUES (null, 'AR-P', 'Formosa');
INSERT INTO province (id, code, name) VALUES (null, 'AR-Y', 'Jujuy');
INSERT INTO province (id, code, name) VALUES (null, 'AR-L', 'La Pampa');
INSERT INTO province (id, code, name) VALUES (null, 'AR-F', 'La Rioja');
INSERT INTO province (id, code, name) VALUES (null, 'AR-M', 'Mendoza');
INSERT INTO province (id, code, name) VALUES (null, 'AR-N', 'Misiones');
INSERT INTO province (id, code, name) VALUES (null, 'AR-Q', 'Neuquén');
INSERT INTO province (id, code, name) VALUES (null, 'AR-R', 'Río Negro');
INSERT INTO province (id, code, name) VALUES (null, 'AR-A', 'Salta');
INSERT INTO province (id, code, name) VALUES (null, 'AR-J', 'San Juan');
INSERT INTO province (id, code, name) VALUES (null, 'AR-D', 'San Luis');
INSERT INTO province (id, code, name) VALUES (null, 'AR-Z', 'Santa Cruz');
INSERT INTO province (id, code, name) VALUES (null, 'AR-S', 'Santa Fe');
INSERT INTO province (id, code, name) VALUES (null, 'AR-G', 'Santiago del Estero');
INSERT INTO province (id, code, name) VALUES (null, 'AR-V', 'Tierra del Fuego');
INSERT INTO province (id, code, name) VALUES (null, 'AR-T', 'Tucumón');
List of provinces: XML
<!-- ISO-3166-2 code + name -->
<?xml version="1.0" encoding="UTF-8"?>
<provinces>
<province>
<code>AR-B</code>
<name>Buenos Aires</name>
</province>
<province>
<code>AR-K</code>
<name>Catamarca</name>
</province>
<province>
<code>AR-H</code>
<name>Chaco</name>
</province>
<province>
<code>AR-U</code>
<name>Chubut</name>
</province>
<province>
<code>AR-C</code>
<name>Ciudad Autónoma de Buenos Aires</name>
</province>
<province>
<code>AR-X</code>
<name>Córdoba</name>
</province>
<province>
<code>AR-W</code>
<name>Corrientes</name>
</province>
<province>
<code>AR-E</code>
<name>Entre Ríos</name>
</province>
<province>
<code>AR-P</code>
<name>Formosa</name>
</province>
<province>
<code>AR-Y</code>
<name>Jujuy</name>
</province>
<province>
<code>AR-L</code>
<name>La Pampa</name>
</province>
<province>
<code>AR-F</code>
<name>La Rioja</name>
</province>
<province>
<code>AR-M</code>
<name>Mendoza</name>
</province>
<province>
<code>AR-N</code>
<name>Misiones</name>
</province>
<province>
<code>AR-Q</code>
<name>Neuquén</name>
</province>
<province>
<code>AR-R</code>
<name>Río Negro</name>
</province>
<province>
<code>AR-A</code>
<name>Salta</name>
</province>
<province>
<code>AR-J</code>
<name>San Juan</name>
</province>
<province>
<code>AR-D</code>
<name>San Luis</name>
</province>
<province>
<code>AR-Z</code>
<name>Santa Cruz</name>
</province>
<province>
<code>AR-S</code>
<name>Santa Fe</name>
</province>
<province>
<code>AR-G</code>
<name>Santiago del Estero</name>
</province>
<province>
<code>AR-V</code>
<name>Tierra del Fuego</name>
</province>
<province>
<code>AR-T</code>
<name>Tucumán</name>
</province>
</provinces>