Help with source template expression
Posted: 09 Jan 2023 21:32
I have a date field in a source template called "Publication date". I want to be able to separate the day and month from that field to suit a particular footnote style.
{Publication_date:YEAR} separates out the year for me, and I can get half way there with the day and month by using the expression {=Day(%SOUR.~DT-Publication_date%)} {=Month(%SOUR.~DT-Publication_date%)}. However, {=Month... returns the month number, whereas I want the (full) month name.
I know that is the correct behaviour for =Month. How might I change the expression, so that I get the full month name, rather than just the month number?
In full, the footnote format currently reads:
<{Author}.> <({Publication_date:YEAR})> <'{Article_title}'.> <i>{Publication_title}.</i> < {=Day(%SOUR.~DT-Publication_date%)} {=Month(%SOUR.~DT-Publication_date%)}.> <{Page_and_column}.>
The output, as I want it to appear, would be (for example):
Higginbottom, Josiah. (1880) 'Stealng a Loaf'. Derby Daily Telegraph and Reporter. 12 March. p. 3
Currently, I am getting:
Higginbottom, Josiah. (1880) 'Stealng a Loaf'. Derby Daily Telegraph and Reporter. 12 3. p. 3
{Publication_date:YEAR} separates out the year for me, and I can get half way there with the day and month by using the expression {=Day(%SOUR.~DT-Publication_date%)} {=Month(%SOUR.~DT-Publication_date%)}. However, {=Month... returns the month number, whereas I want the (full) month name.
I know that is the correct behaviour for =Month. How might I change the expression, so that I get the full month name, rather than just the month number?
In full, the footnote format currently reads:
<{Author}.> <({Publication_date:YEAR})> <'{Article_title}'.> <i>{Publication_title}.</i> < {=Day(%SOUR.~DT-Publication_date%)} {=Month(%SOUR.~DT-Publication_date%)}.> <{Page_and_column}.>
The output, as I want it to appear, would be (for example):
Higginbottom, Josiah. (1880) 'Stealng a Loaf'. Derby Daily Telegraph and Reporter. 12 March. p. 3
Currently, I am getting:
Higginbottom, Josiah. (1880) 'Stealng a Loaf'. Derby Daily Telegraph and Reporter. 12 3. p. 3