View Single Post
Old 10-20-2024, 01:37 PM   #19
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 896
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by Protoplast26 View Post
how to get leading zeros on this template

program:
floor(days_between($$#read_end, $$#read_start))

It would be something like this
Code:
program: format_number(days_between(raw_field('#read_end'), raw_field('#read_start')), "{0:02.0f}")

Last edited by dunhill; 10-20-2024 at 01:40 PM.
dunhill is offline   Reply With Quote