MinimServer Forum
Index Date Format? - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Index Date Format? (/showthread.php?tid=7077)



Index Date Format? - aspaceintime - 26-11-2023 15:11

I have been playing around with the IndexDate format setting and have a few questions.

Here's my current setting for indexdate format: IndexDate.indexFormat={$date^|^| $origyear^^ ,

Q1: How can I add a label to the date so the results show Release Date:1957
Q2: How can I format to results of only show the 4 digit date

Attached is an example of the results I have now.[attachment=3068]


RE: Index Date Format? - simbun - 26-11-2023 21:59

I'm not entirely sure I follow as the attached image doesn't reflect your indexDate and looks more like an album listing, but I'll try and answer your questions and if I've misunderstood anything just let me know.

(26-11-2023 15:11)aspaceintime Wrote:  Q1: How can I add a label to the date so the results show Release Date:1957
If you're asking to add it to the indexFormat then:
$date^Release Date: ^

(26-11-2023 15:11)aspaceintime Wrote:  Q2: How can I format to results of only show the 4 digit date
To only display YYYY in indexes, you'd use the tagOption:
tagOptions: Date.yearOnly.index


RE: Index Date Format? - aspaceintime - 27-11-2023 13:44

That did what I was looking for. Thanks