photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: mgm1965 on September 30, 2016, 01:48:16 PM

Title: Formatting DateCreated as format:XWOYM
Post by: mgm1965 on September 30, 2016, 01:48:16 PM
I want to format the output of:

{File.MD.XMP::photoshop\DateCreated\DateCreated\0|format:XWOYM}

with two digits when the week is in the range 1 - 9.

At the moment I wasn't succesfull and I haven't find the answer in the Help

How can I do?

Thanks

Marco
Title: Re: Formatting DateCreated as format:XWOYM
Post by: Mario on September 30, 2016, 02:37:07 PM
Just use a numformat function to format the output:

{File.DateTime|format:XWOYM;numformat:int,02}

This formats the output to at least 2 digits, with a leading 0 for numbers < 10.
Title: Re: Formatting DateCreated as format:XWOYM
Post by: mgm1965 on October 01, 2016, 11:36:54 AM
Thanks, I found the {numformat:int,02} in the help but it didn't work, probably I mistyped the command...

Thanks again.