[v23] {date[yyyy]} don't work

Moderator: xnview

Kadet
Posts: 456
Joined: Thu Oct 20, 2022 7:23 pm

[v23] {date[yyyy]} don't work

Post by Kadet »

Rename funcion {name[4-8]} work, but {date[yyyy]} not.
User avatar
xnview
Author of XnView
Posts: 48628
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: [v23] {date[yyyy]} don't work

Post by xnview »

Date is not an example, please try {exif:dateModified[yyyy]}
User avatar
xnview
Author of XnView
Posts: 48628
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: [v23] {date[yyyy]} don't work

Post by xnview »

Kadet wrote: Sat Aug 01, 2026 8:44 pm Rename funcion {name[4-8]} work, but {date[yyyy]} not.
is it good?
Kadet
Posts: 456
Joined: Thu Oct 20, 2022 7:23 pm

Re: [v23] {date[yyyy]} don't work

Post by Kadet »

Yes, it's work, as you wrote.

BTW. When pressing NAME, it would be nice if it showed {name[1-"max"]}. It is easier to delete unnecessary characters than to add [...]. For novices, there should also be a guide to these additional filters [...].
User avatar
B.Douille
Posts: 388
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: [v23] {date[yyyy]} don't work

Post by B.Douille »

I would agree with Kadet on including a sample of formatting option. On desktops and laptops, average users don’t give time to RTFM. It even doesn't exit on mobile Apps.
For example, I didn't know about substring {name[1-"max"]} as mentioned by Kadet. For date and time, the mix of upper/lower char is still a question for me. Better to learn via samples:
{file:modifiedDate[yyyyMMdd_HHmmss]}
Daniel, happy user for 20 years, to manage photo and videos and share them in slideshows (Windows 11, Linux Ubuntu and Android)