View Single Post
Old 10-13-2020, 07:31 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This template works better.
Code:
program:
	p = format_date(raw_field('pubdate'), 'yyyy');
	if p then
		strcat(re(p, '^(...).*', '\1'), '0.', p)
	fi
You probably want to turn off partitioning for this column.

Last edited by chaley; 10-13-2020 at 07:34 PM.
chaley is offline   Reply With Quote