jgoddard Posted August 27, 2013 Share Posted August 27, 2013 Hi, I'm running into an issue when I try to group my timestamp by day. I have a Field: $F{testresult_tetstdate} Field class: (java.sql.timestamp) which I need to break into groups per day. Currently, When I group it by this field, it groups on every individua; timestamp. I've tried using .getdate, and i notice it returns the day, but still groups by timestamp....The version I'm using is 5.0So instead of 3 groups, the following selection of timestamps would create just 2 (Aug 26 and 27) Aug 26 2013 17:00:00Aug 26 2013 17:02:00Aug 27 2013 14:22:00 This seems like an easy thing to do- in Crystal you could just select “by day”. However, I’ve searched online pretty thoroughly, and can’t find a simple solution- is this just very complicated, or is there a way to do it? Thanks in advance. Thanks in advance! Link to comment Share on other sites More sharing options...
tusar.ranjan.pradhan Posted August 28, 2013 Share Posted August 28, 2013 hi,you try one thing, just separate dates into two columns (means one is timestamp and another one is date without time).for grouping use date column and for view purpose show timestamp. i hope it will work for you.......! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now