Problem with custom date

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Problem with custom date

Postby woody345 » Wed Nov 28, 2012 7:55 pm

Hello all.

I'm running into a problem with trying to rename files using the custom date feature. What I wish to do is add the date and time the file was created in the following format to the end of a file; (%b-%d-%Y_%i-%M-%S_%p) which would resemble this (Mar-14-2012_3-45-29_PM) with the () included. As I type this into the custom field under date however it seems to work until I get to the %i and then it just stops working as if there is a length restriction to the variable, i.e. I can only enter so many things in the box.

From reading the help file it seems that this is possible, but I am not sure if I am just entering it in the wrong spot perhaps or I need to tweak some other settings first?

Anyways, hope someone can set me straight on this, thanks in advance.
woody345
 
Posts: 2
Joined: Wed Nov 28, 2012 7:19 pm

Auto Date(8) custom date

Postby Stefan » Thu Nov 29, 2012 7:28 am

woody345 wrote: What I wish to do is add the date and time the file was created in the following format to the end of a file;

(%b-%d-%Y_%i-%M-%S_%p)

which would resemble this

(Mar-14-2012_3-45-29_PM) with the () included.

As I type this into the custom field under date however it seems to work
until I get to the %i and then it just stops working
as if there is a length restriction to the variable, i.e. I can only enter so many things in the box.


You just have to do it right, then it works.

To see if there is an lenght restriction just try something like:
(%b_%b_%b_%b_%b_%b_%b_%b_%b_%b_%b_%b)

To see if there is an proplem with %i just enter them alone into the field.
And you will see there is no such parameter lower case i

See the help:
Custom Date Formats
Code Meaning
%a Abbreviated weekday name
%A Full Weekday name
%b Abbreviated month name
%B Full month name
%d Day of Month (01-31)
%H Hour in 24-hour format (00-23)
%I Hour in 12-hour format (01-12)
%j Day of Year (01-366)
%m Month number (01-12)
%M Minute (00-59)
%p AM/PM Indicator
%S Seconds (00-59)
%U Week number of year (00-53), with Sunday as the first day of the week.
%w Weekday (0-6), with Sunday=0.
%W Week number of year (00-53), with Monday as the first day of the week.
%y Year, with no century indicator (00-99)
%Y Year, with century indicator (e.g. 2004)
%z Time zone name
%% Percentage sign


So just use:
Auto Date(8)
Mode: Suffix
Type: what you want
Fmt: custom
Custom: (%b-%d-%Y_%I-%M-%S_%p)

Select a few files to see in the NewName column if it works.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Problem with custom date

Postby woody345 » Fri Nov 30, 2012 2:22 am

Boy do I feel silly. I had jotted down the parameters on a notepad and just put a lower case i rather than the upper case one required. Thanks for setting me straight Stefan
woody345
 
Posts: 2
Joined: Wed Nov 28, 2012 7:19 pm

Re: Problem with custom date

Postby Stefan » Fri Nov 30, 2012 12:09 pm

That's life :D

Great it works now!
Thanks for feedback!!!
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to BRU Support