Apple Event: May 7th at 7 am PT

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 insert 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:53 AM

Reply
Question marked as Best reply

Posted on Oct 26, 2013 4:52 AM

Hey Alex, I checked all the menu items, and I couldn't find it anywhere myself, so I just tried something that seemed logical to me.


1. select the cell you want the date

2. type in "=" then "Today"


and it Worked!


I also tried =Date, it gives options for month, year, day. but couldn't figure that one out.

39 replies

Oct 26, 2013 5:26 PM in response to SGIII

That is great,

I need to change the text style on mine too. But I have one more thing:


I'm actually trying to make a list for date that insert a paticular formatation, where in enters the month, space and the day. Both with two digits so that on January 3rd it would enter 01 03.

User uploaded file

I've tryied going to System Preferences > Language&Region > Advanced... > Dates

but it does not change drop box in the cell Data format.

User uploaded file

Oct 26, 2013 6:34 PM in response to alexhax

alexhax wrote:


Curiously, on the new Numbers for iOS 7 the Today button appears on the keyboard if you select the day or year up there.


That's great. Thanks for pointing that out. You'd think the Today button would be in a more obvious place but it's there!


Like you, on the Mac I'm having no luck changing date formats in Language & Region preferences. So far Numbers 3.0 seems to offer the same choices of date format no matter what I try there.


So you could get AppleScript to give you 10 26 as a string that would display the way you want. But it wouldn't be a true date and time value.


And of course there is no "custom format" any more😟.


SG

May 29, 2014 1:32 PM in response to SGIII

Hi,


is there a way to use your script to just enter the TIME in 24 hour format, in a cell from a keyboard shortcut?


I'm a complete novice to programming, although I'm slightly ok with simple equasions and stuff in Numbers.


I'm using a spreadsheet in Numbers on MacBookAir.


Please give as many instructions as you can in your reply, if you can do this.


Thanks.


Adam.

May 29, 2014 2:22 PM in response to addybails

is there a way to use your script to just enter the TIME in 24 hour format, in a cell from a keyboard shortcut?



Yes, the AppleScript can produce time in 24-hour format. However, unless I am mistaken, Numbers always stores a date-time string, not just the time. To see what I mean, try typing 23:00 in a cell and looking lower left (if you are using Numbers 3) at what's actually in the cell. What you see there may, depending on your localizaton, be different from mine, but it most likely will include both the time and a date.


User uploaded file



Will that be a problem? What more specifically are you hoping to do?


SG

May 29, 2014 2:44 PM in response to SGIII

I'm primarily looking for a way to use a keyboard shortcut to enter the current time only in the currently selected cell. I don't need the date, only the time in 24 hour clock.


We use it to log people in and out of the building. And have to do this up to 160 times in a day.


In windows and excel it's CTRL-;


I appreciate Numbers doesn't have such shortcuts tho.

May 29, 2014 2:49 PM in response to addybails

Ok, I'll look at that this evening. I tried it in Excel and Excel seems to insert just a time (whereas Numbers, I think, always inserts date and time even if you just want the time only.) But if you don't mind having the date in there along with the time, you can have a keyboard shortcut in Numbers too.


SG

May 29, 2014 3:06 PM in response to addybails

I just tried to use the shortcut I made for inserting date and time, and it always inserts the date OK, but the time is always 00:00


I also tried to format the cell for date and time, and right justify it, so it only shows the last part of it, which is the time, but when I double click and use the shortcut, it then overrides the format and expands the text beyond the box, and changes the format of the cell.


So it's not really working at all, as I see it.


Adam.

May 29, 2014 7:42 PM in response to addybails

Hi Adam,


Try this 'Insert time' Automator Service (Dropbox dowload) which includes the script below.


To install doubleclick the .workflow package. You may have to click 'Open anyway' in System Preferences > Security & Privacy. It will then appear automatically in your Numbers > Services Menu.


Then you can assign a keyboard shortcut here (System Preferences > Keyboard):


User uploaded file


Thereafter, whenever you need to insert a time just click a cell in Numbers and hit the keyboard shortcut you assigned. Very similar to Excel.


If you ever want to remove the service just hold down the option key in Finder and Go > Library > Services.


SG




--inserts time in 24-hr format

set the clipboard to (do shell script "date +%H:%M")

tell application "Numbers"

activate

tell application "System Events"

keystroke "v" using {shift down, option down, command down}

end tell

end tell

--end of script

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.