YUI 3.x Home -

Site Search (YDN & YUIBlog):

# Library Examples: DataType Utility

Note: This is YUI 3.x. Looking for YUI 2.x?

## DataType Utility: Examples

The DataType Utility provides a functionality to parse data into known JavaScript entities, such as numbers, dates, and XML documents, as well as convert such entities into formatted strings.

- DataType.Date.format(): Formatting dates into strings.
- DataType.Date.parse(): Parsing data into dates.
- DataType.Number.format(): Formatting numbers into strings.
- DataType.Number.parse(): Parsing data into numbers.
- DataType.XML.format(): Formatting XML documents into strings.
- DataType.XML.parse(): Parsing strings into XML documents.

### Examples That Make Use of DataType Utility

- Enforcing DataTypes (included with examples for the DataSchema Utility)

Copyright © 2009 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings