Author Topic: Date string for Ingest  (Read 1108 times)

Offline pwp

  • Newcomer
  • *
  • Posts: 48
    • View Profile
Date string for Ingest
« on: July 18, 2021, 07:17:39 PM »
I have just switched from PC to Mac. The workstation class PC died abruptly and took all my settings and preferences with it. Grrrr! I kept all my Photomechanic stuff in a folder, useful strings etc. Gone! Image files were all properly backed up of course. It made me realise how important all those years of constantly refined settings and preferences are.

For the life of me I can't reconstruct the date string in Ingest that I've been using for years. Today is 19 July 2021. I want a filename that looks like this: pwp-20210719-0001.  I get the pwp (my business name) and sequence, but the date construction? I used this: pwp-{year4}{month}{date}-{seqn} but it comes out pwp-202114-7-21-0001

Forgive my brain fade. Help!

Offline Odd Skjaeveland

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: Date string for Ingest
« Reply #1 on: July 19, 2021, 12:55:17 AM »
I used this: pwp-{year4}{month}{date}-{seqn} but it comes out pwp-202114-7-21-0001

Try {month0} and {day0} to get two digit month and day with leading zero if less than 10.
--
Odd S.

Offline Bob M

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • The McElroys of Point Alexander
Re: Date string for Ingest
« Reply #2 on: July 19, 2021, 04:16:41 PM »
pwp-{datesort}-{seqn}

Offline pwp

  • Newcomer
  • *
  • Posts: 48
    • View Profile
Re: Date string for Ingest
« Reply #3 on: July 20, 2021, 09:56:22 PM »
Thanks Odd and Bob. Both strings work perfectly. :)
Cheers, Paul