YD

Hello Community,

I have a question regarding the date format of the attribute.

First I set the method and interface language to English and I read the attribute "last change" from the model. The output value is "Jul 29, 2019 3:45:43 PM". However, when I change the both language configuration to German, the output value will be automatically converted to "29.07.2019 15:45:43". The result won't change when I change the login language.

I would like to ask if there is a method to read all the time string in a standard format regardless of the language configuration. Thank you in advance!

Best

by Martin Schröder
Badge for 'Contributor' achievement
Posted on Thu, 08/01/2019 - 14:48

Hello Ye,

if you are using Object.Attribute().getValue() on a time point attribute type it returns timestamp as a string.

You can format a date object by means of the Java SimpleDateFormat class, so you would need to transform the value of attribut last change from string to a date and then give it a format pattern like "dd.MM.yyyy HH:mm:ss".

A code example is in the last post of this thread.

Regards, Martin

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock