title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Dynamic Naming, Getting the current Month

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canvasfly

    • Apr 2014
    • 4

    Dynamic Naming, Getting the current Month

    Hello,
    I save my ripped CDs in a folder named after the year and month they were ripped.
    for Example: Music\202105\AlbumArtist_Album\Yadda Yadda

    I am trying to setup a dynamic naming template to do just that.
    Currently I have:
    [now_year][Grab],1,2,[date][]\[album_artist]_[album]\etc...

    Since the format of [date] is M-D-YYYY..., I am getting "5-" for May. I tried to do a [REPLACE] on the [date] values to replace 5- with 05, so i could then [GRAB] it. That didn't work.
    Is there a variable for current Month that i should use? Is there another way to do this, that I'm missing.

    Thanks
  • mville
    dBpoweramp Guru

    • Dec 2008
    • 4021

    #2
    Re: Dynamic Naming, Getting the current Month

    On my Windows 10 Pro PC, the date format for [date] is dd/MM/yyyy.

    This is the OS short date format specified in: Control Panel > Region

    Try changing the OS short date format to MM-DD-YYYY and using [GRAB]1,2,[date][].

    ... and if you can't change the short date format M-D-YYYY, try this:
    [IF][GRAB]2,2,[date][],=,-,0[GRAB]1,1,[date][],[GRAB]1,2,[date][]
    Last edited by mville; May 20, 2021, 04:45 PM. Reason: added a workaround

    Comment

    • canvasfly

      • Apr 2014
      • 4

      #3
      Re: Dynamic Naming, Getting the current Month

      Originally posted by mville
      On my Windows 10 Pro PC, the date format for [date] is dd/MM/yyyy.

      This is the OS short date format specified in: Control Panel > Region

      Try changing the OS short date format to MM-DD-YYYY and using [GRAB]1,2,[date][].

      ... and if you can't change the short date format M-D-YYYY, try this:
      [IF][GRAB]2,2,[date][],=,-,0[GRAB]1,1,[date][],[GRAB]1,2,[date][]
      What!? That makes sense. I've journeyed to that config panel to make similar changes for Excel.
      Thank you so much.

      Comment

      Working...

      ]]>