Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (19 loc) · 740 Bytes

any.format.md

File metadata and controls

25 lines (19 loc) · 740 Bytes

any.format

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

Sample

	(12345).format("#,000.0");
	(new Date()).format("yyyy/MM/dd");

API

CallingReturning
{any} . format ( formatter )String
{any} . format ( formatter , rounder )String
ParametersTypeDescription
formatterStringNumber formatter or date formatter.
rounderStringThe rounder for number format.