Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 2nd, 2015, 01:35 PM
seymoujd seymoujd is offline
Junior Community Member
 
Join Date: Jul 2014
Posts: 40
Default Automatic Date

Can i write a rule that makes the date on a product automatically update to the current date each time it is composed?
Reply With Quote
  #2  
Old September 2nd, 2015, 02:18 PM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 266
Default Re: Automatic Date

Quote:
Originally Posted by seymoujd View Post
Can i write a rule that makes the date on a product automatically update to the current date each time it is composed?
I think so.

Code:
var d = new Date();

return d;
__________________
David Miller
FusionPro VDP Creator 12.0.3
Adobe Acrobat Pro 2021
macOS Big Sur 11.6.2

Last edited by David Miller; September 2nd, 2015 at 02:32 PM..
Reply With Quote
  #3  
Old September 2nd, 2015, 02:44 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 957
Default Re: Automatic Date

If you only want the date, you can format it like so:
Code:
return FormatDate(new Date(), 'lm d, yyyy');
The Date object by default will return the day, date, and time.
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #4  
Old September 2nd, 2015, 02:59 PM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 266
Default Re: Automatic Date

Quote:
Originally Posted by step View Post
If you only want the date, you can format it like so:
Code:
return FormatDate(new Date(), 'lm d, yyyy');
The Date object by default will return the day, date, and time.
Perfect! But if composing more than one time a day, having the time would be helpful.

LOL. JK.

He asked:
Quote:
Originally Posted by seymoujd View Post
...each time it is composed?
Welcome back step!
__________________
David Miller
FusionPro VDP Creator 12.0.3
Adobe Acrobat Pro 2021
macOS Big Sur 11.6.2

Last edited by David Miller; September 2nd, 2015 at 03:16 PM..
Reply With Quote
  #5  
Old September 2nd, 2015, 03:04 PM
FreightTrain's Avatar
FreightTrain FreightTrain is offline
Learning Development Manager
 
Join Date: Oct 2008
Location: Solana Beach, CA
Posts: 326
Default Re: Automatic Date

if you want it to return the current date use the following

return FormatDate(Today(), 'lm d, yyyy');
__________________
Richard A. Lewis, Jr.
Learning Development Manager | MarcomCentral® a Ricoh Company
Reply With Quote
  #6  
Old September 2nd, 2015, 03:20 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 957
Default Re: Automatic Date

Quote:
Originally Posted by David Miller View Post
Perfect! But it won't work if it is composed more than one time a day. LOL. JK.
Does the current date change after each composition? I may have just time traveled.

I assumed seymoujd was wanting to put the date somewhere on his composed file. So if he composed today and had to re-compose later today he'd still want it to say "September 2, 2015." I suppose if he wanted a unique date per each composition (in the case of file name for example) your unformatted approach is probably the better option.
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #7  
Old September 2nd, 2015, 05:27 PM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 266
Default Re: Automatic Date

Quote:
Originally Posted by step View Post
Does the current date change after each composition? I may have just time traveled.

I assumed seymoujd was wanting to put the date somewhere on his composed file. So if he composed today and had to re-compose later today he'd still want it to say "September 2, 2015." I suppose if he wanted a unique date per each composition (in the case of file name for example) your unformatted approach is probably the better option.
I'm sure we both work in a very demanding production environment. We often compose jobs and send them into production several times a day. Everything is due now. On demand. Rush. Rush. Rush. Too many changes; blah, blah, blah. (Funny, there is always time to print it a second time when there is a problem.) I KNOW you understand what I mean.

My approach WAS totally unformatted. Point being, just use a little Google-Fu. Date, time, here you go.

Date formatting could be an entire topic altogether.

Time travel is another story. But, I'd subscribe to that thread Step! Just let me know. I'm there.
__________________
David Miller
FusionPro VDP Creator 12.0.3
Adobe Acrobat Pro 2021
macOS Big Sur 11.6.2

Last edited by David Miller; September 2nd, 2015 at 09:54 PM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.