CultureDataFormatter in TypeScript #22
Replies: 3 comments
-
|
When I started playing around, how do we in fact get hold of CultureDataFormatter.ParseEncodedInt? :) let test = "[I:5]"; Returns Cannot find name 'CultureDataFormatter'. |
Beta Was this translation helpful? Give feedback.
-
|
Nevermind, built my own :) |
Beta Was this translation helpful? Give feedback.
-
|
We will look at getting this into the library by the time we ship it. Example usage... import { CultureDataFormatter } from './CultureDataFormatter'; console.log('CultureDataFormatter encode int: ' + CultureDataFormatter.encodeInt(123)); const date = new Date(); console.log('CultureDataFormatter encode datetime: ' + CultureDataFormatter.encodeDateTime(date)); const time = CultureDataFormatter.encodeTime(date); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
What's the best practice for handling Cultures when using for example getArchiveAgent?
For example, if we get "displayValue": "[I:5]", do we need to use CultureDataFormatter.ParseEncodedInt, or is there any better way?
Beta Was this translation helpful? Give feedback.
All reactions