Parses a string representing a whole number in the given radix (10 by default).
Sytaxis:
object.parseInt(value,[radix,culture])
Arguments:
Name
Type
O/R
Description
value
String
Required
Value to be parsed.
radix
Number
Optional
Radix (10 by default).
culture
String
Optional
Culture name.
Event
B
C
Interface
Description
Pseudo-class
Description
Constant
Value
Description
Remarks
Date formats. When more specific control is needed over the formatting, you may create custom formats using custom tokens.
f - Long Date, Short Time
F - Long Date, Long Time
t - Short Time
T - Long Time
d - Short Date
D - Long Date
Y - Month/Year
M - Month/Day
S - Sortable date format "yyyy-MM-ddTHH:mm:ss"
Number formats. For number formats you can also use number next to format identifier to give output string length. For example ample.locale.format(0.12345, "p4") will output 12.3450 % in default en-US locale.
n - number
d - decimal digits
p - percentage
c - currency
Examples
Setting application locale to South-African Afrikaans language: