Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Set Locale of Date Via Scripting
jdewells25
<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
micajblock
<p>Take a look at this DevShare.</p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/1078-new-advanced-localization-technique/'>http://developer.actuate.com/community/forum/index.php?/files/file/1078-new-advanced-localization-technique/</a></p>
;