Jump to content
We've recently updated our Privacy Statement, available here ×

cyberwinni

Members
  • Posts

    2
  • Joined

  • Last visited

cyberwinni's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Thank you. It works. But one question for my understanding. Can you explane me that funktion: DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format($F{date}) what does getDateTimeInstance? And why DateFormat.MEDIUM two times? Convert this funktion a Timestamp field into a Srting field?
  2. I have Field $F{date} with format timestamp. At the moment in ireport in the Report the Text Field Expression is this: DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format($F{date}) The result is: 27.04.2021 15:15:00 But I need only the date without the time: 27.04.2021 And I don't know how it works. When I use getDateInstance: DateFormat.getDateInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format($F{date}) I get a problem: The method getDateInstance(int) in the Type DateFormat is not applicable for the arguments (int,int) What can I do?
×
×
  • Create New...