Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts + Display tag.  RSS feed

Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello every one ,

I am using Struts 2 + hibernate with Display tag.

In my database there are one table colon date contains date only not time like : - 2002-10-17
and same another table contains time only like : - 11:48:19.

My question is when i select record from data base and display it with <display:column then it display date like :- 2008-10-17 00:00:00.0 and
time like :- 1970-01-01 11:48:19.0

but i want Date :- 2008-10-17 and time :- 11:48:19.0 only.

Please give me suggestion for this ASAP how I can format this date and time in display tag.

Nishan Patel
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!