date grouping

103 views
Skip to first unread message

Cirsten Werndly

unread,
Mar 23, 2015, 10:01:22 AM3/23/15
to memento...@googlegroups.com
When grouping by date it will group by the day, eg
1 September 2011
2 September 2011

Is it possible to reduce this by selecting to group by months or just by years rather than down to individual days?

Mario !

unread,
Mar 26, 2015, 10:20:16 AM3/26/15
to memento...@googlegroups.com
Try to add calculated field that represents date by month. Then sort by that field.

Jerzy Pieńkowski

unread,
Feb 1, 2016, 7:07:19 AM2/1/16
to mementodatabase
How to create calculated field that represents date by month?

Eugene Kartoyev

unread,
Feb 1, 2016, 8:21:59 AM2/1/16
to mementodatabase
To extract the month name, if your date is shown as it is in my database, i.e.
1 February 2016
29 February 2016

then you can use the following formula in reference to a field called "time"

trim(substring(formatDate(#{time}),indexOf(formatDate(#{time}),' ',0),indexOf(formatDate(#{time}),' ',3)))

Mr Mukura

unread,
Feb 2, 2016, 12:13:13 PM2/2/16
to mementodatabase
Eugene, thanks for this example, it works well AND has given me a hint on how to use trim and indexof better
Reply all
Reply to author
Forward
0 new messages