Jump to content

Automatic Date


seymoujd

Recommended Posts

If you only want the date, you can format it like so:

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:

...each time it is composed?

 

Welcome back step!

Edited by David Miller
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Edited by David Miller
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...