Hi,
I am currently developing an application where I am displaying a set of data from the database to a table component. I am using a BeanItemContainer and adding it to the table by calling table.setContainerDataSource() method. One of the fields, is a Date type and its displaying the complete date along with the time , something like this :
May 15,2013 12:00:00 AM
. I want to remove timing and display only the date. But I do not know how to do that.
Can anyone help on this?
Here is the code:
final BeanItemContainer<Card> cardBeanItemContainer = new BeanItemContainer<Card>(Card.class);
cardBeanItemContainer.addAll(cardService.findByMember(member.getId()));
final Table tblCards=new Table();
tblCards.setSelectable(true);
tblCards.setWidth("95%");
//Fill the data
tblCards.setContainerDataSource(cardBeanItemContainer);
tblCards.setVisibleColumns(new Object[]{"cardType","issueDate","expiryDate","status"});
Thanks in advance,
Kishor