掲示板
Retrieve Date(Stored as Custom Field) From Database
12年前 に Akash Patil によって更新されました。
Retrieve Date(Stored as Custom Field) From Database
Junior Member 投稿: 75 参加年月日: 10/12/13 最新の投稿
Hi Friends,
I created Custom Fields for Organizations to store the creation date. The is stored in Integer format in Data Base
For Example:1323939938109, 1323939938171, 1323940009921like this.
I can get The Creation Date in my Portlets by Using Services easily.
But in reports How can i get the Date Using SQL..? Plz help me to over come from this.
Thank you,
Akash Patil
I created Custom Fields for Organizations to store the creation date. The is stored in Integer format in Data Base
For Example:1323939938109, 1323939938171, 1323940009921like this.
I can get The Creation Date in my Portlets by Using Services easily.
But in reports How can i get the Date Using SQL..? Plz help me to over come from this.
Thank you,
Akash Patil
12年前 に Ravi Kumar Gupta によって更新されました。
RE: Retrieve Date(Stored as Custom Field) From Database
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
Where are you trying to get this date?? In java, you can use simple
Date d = new Date(1220227200);
12年前 に Raja Nagendra Kumar によって更新されました。
RE: Retrieve Date(Stored as Custom Field) From Database
Expert 投稿: 484 参加年月日: 06/03/02 最新の投稿
1323940009921 is this long number got from System.currentTimeMillis()...
If yes, then use this Calendar.getInstance().getDate(currentTimeMillis) get Date Instance
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
If yes, then use this Calendar.getInstance().getDate(currentTimeMillis) get Date Instance
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
12年前 に Jitendra Rajput によって更新されました。
RE: Retrieve Date(Stored as Custom Field) From Database
Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
Do you mean Jasper report ? Or any other report.
If jasper report then you can change date format from ireport tool and that will be reflected in your jrxml...
If jasper report then you can change date format from ireport tool and that will be reflected in your jrxml...