XG

Hi everyone,

I am working on a report generating a handbook.

In this handbook i have to record the date, so I use the

g_ooutfile.OutputField(Constants.FIELD_DATE, "Arial", 8, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT); 

But with the Constants.FIELD_DATE it will always be like 07.11.19 (in German) or 11/7/19 (in English) but I hope it could be like 07.11.2019 (for year 2019 instead of only 19).

If it's possible to change the date format?

 

Thanks if you can give some suggestions :)

by Armin Nosbüsch
Posted on Fri, 11/08/2019 - 10:49

You can use the Java SimpleDateFormat instead. Then you are completely flexible in formatting dates.

var sDate = java.text.SimpleDateFormat("dd.MM.yyyy").format(new Date());

g_ooutfile.Output(sDate, "Arial", 8, Constants.C_BLACK, Constants.C_WHITE, Constants.FMT_LEFT,0); 

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