Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.22 KB

any.parse.md

File metadata and controls

54 lines (45 loc) · 1.22 KB

any.parse

The parse function is established to parse String to Number or Date. {any} = { Number | Date }

Sample

var nm = Number.parse("12,345.0", "#,000.0");
var dt = Date.parse("2016/09/08", "yyyy/MM/dd");

API

CallingReturning
{any} . parse ( value , formatter )String
ParametersTypeDescription
valueStringThe string value of Number or Date.
formatterStringNumber Formatter or Date Formatter
Number Formatter
0
#
,
.
%
Date Formatter
GGGGyJapan WAREKI, 2016 -- 平成28
GyJapan WAREKI, 2016 -- H28
yyyy
yy
MM
M
dd
d
HH
H
mm
m
ss
s
SSS
S