Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Current Date Custom Object Output Format

Avatar

07-01-2009

i am unable to change the Current Date Custom Object form mm/dd/yy.



Any suggestions.

Replies

Avatar

Avatar
Level 2
_Jenn_Dickens_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Jenn_Dickens_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
_Jenn_Dickens_
Level 2

07-01-2009

I assume that you get this from Insert/Custom/Current Date???



You need to change the # in the script to match the format you want...



According to the Adobe help files...(search DateFmt)



The following expressions are examples of using the DateFmt function:



DateFmt(1) returns - M/D/YY (if en_US locale is set)

DateFmt(2, "fr_CA") returns - YY-MM-DD

DateFmt(3, "de_DE") returns - D. MMMM YYYY

DateFmt(4, "fr_FR") returns - EEEE D' MMMM YYYY



I don't know if you can customize it further or not...



Jenn D.

Avatar

08-01-2009

Thanks Jenn.



Although I don't do scripting I was able to figure it out.



Works fine.

Robert

Avatar

10-01-2009

Please let me know how you got it to work.



It's been driving me crazy - I've been going through the 'help' and tried it all - but I need the format to be MM/DD/YY - 01/09/09 - it needs to have the zeros.

Avatar

10-01-2009

I GOT IT!!!!



Num2Date(Date(), "MM/DD/YY")



CURRENT DATE FORMATED: MM/DD/YY 01/09/09