Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I insert today's date in a cell on Numbers 3.0?

Hello there,


Numbers used to have a item on Inset menu that would inset today's date in a cell in a couple clicks.


Does anybody knows the new pathway to get that done?



Alex

iMac, OS X Mavericks (10.9)

Posted on Oct 26, 2013 3:51 AM

Reply
10 replies

Oct 26, 2013 6:07 AM in response to Jerrold Green1

Hi Alex,


If you often enter dates here is a way that can save you some time.


(This is a one-time setup. Using it thereafter is just a menu pick or keyboard shortcut.)


Open Automator (in your applications folder) and choose Service as document type;


User uploaded file



Drag Run AppleScript action from the left over into the right pane:


User uploaded file



Copy this script and paste it into the right pane (replacing what's there):


on run

set date_ to ((current date) as string)


set the clipboard to the date_

end run



After clicking the hammer, the right pane should now look like this:


User uploaded file


Save the Automator Service as "Get Date" or whatever you want to call it.


You only need to do these setup steps steps ONCE.


Now, whenever you need to input the date, just choose Get Date in the Numbers Services menu.


User uploaded file


And paste into the cell where you need it with command-v.


If you don't like the services menu you can also assign Get Date to a keyboard shortcut, so you would type your keyboard shortcut followed by command-v.


SG

Oct 26, 2013 7:13 AM in response to thyondesign

No idea why it didn't make the cut in Numbers 3.0. Maybe they'll bring it back. Meanwhile, there is a pretty painless workaround.


You can paste in a cell or text box, wherever. All this does is place the current date & time in the clipboard, as if you had typed it.


Forgot to mention one part of the setup (that Alex discovered). You need to select no input at the top of the pane after you've dragged Run AppleScript over to the right.


User uploaded file


SG

Oct 26, 2013 8:17 AM in response to SGIII

Cross-posted from a similar thread in case anyone is interested in assigning a keyboard shortcut:


In case you want to add a keyboard shortcut you would go to System Preferences>Keyboard>Shortcuts, scroll down to find the Automator Service you just created ('Get Date' in my case, 'Today; in alexhax's), check the box and assign a keystroke combination that isn't already used.


User uploaded file


SG

Apr 6, 2014 5:18 PM in response to tabbycat14

Normally I customize the appearance of the date in the cell within Numbers:


User uploaded file


But, if that is not convenient, there are ways to have AppleScript format the string it puts on the clipboard. Do you you have a particular format in mind? If you do, post it, and I think I can demonstrate how to customize the script to produce what you want.


SG

Apr 6, 2014 6:24 PM in response to tabbycat14

It is not hard to have AppleScript produce the string in the format of "Apr 4 Fri". For example, these two lines in the script:


set date_ to ((current date) as string)

set the clipboard to the date_


could be replaced with these:


set {year:y, month:m, day:d, weekday:wd} to (current date)

set customDate to text 1 thru 3 of (m as text) & " " & d & " " & text 1 thru 3 of (wd as text)

set the clipboard tocustomDate



But I don't think Numbers will recognize your chosen format as a date. So you wouldn't be able to base any calculations on the target cell in which you place the date. Is that what you want?


SG

How do I insert today's date in a cell on Numbers 3.0?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.