Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Set Locale of Date Via Scripting
Migrateduser
<p>Hello,</p>
<p> </p>
<p>Via scripting, how can I get or set the locale property shown in bold at the end of the post?</p>
<p> </p>
<p>I understand that I can set the date format string, via</p>
<pre class="_prettyXprint _lang-js">
this.getStyle().dateLocale = 'example-date-string'
</pre>
<p>but I would like to set the locale of the date object. How can I do this via scripting?</p>
<pre class="_prettyXprint _lang-xml">
<data id="774">
<structure name="dateTimeFormat">
<property name="category">Long Date</property>
<property name="pattern">Long Date</property>
<property name="locale">sr_Latn_RS</property>
</structure>
<list-property name="boundDataColumns">
<structure>
<property name="name">Date</property>
<text-property name="displayName">Date</text-property>
<expression name="expression" type="javascript">new Date()</expression>
<property name="dataType">date</property>
</structure>
</list-property>
<property name="resultSetColumn">Date</property>
</data>
</pre>
Find more posts tagged with
Comments
There are no comments yet