Formatting DateCreated as format:XWOYM

Started by mgm1965, September 30, 2016, 01:48:16 PM

Previous topic - Next topic

mgm1965

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

Mario

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.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mgm1965

Thanks, I found the {numformat:int,02} in the help but it didn't work, probably I mistyped the command...

Thanks again.