date as text

Is there a way to convert a date to text in Numbers. In AW's I used DATETOTEXT.

Cheers

FP iMac 800 Mhz SuperDrive, Mac OS X (10.4.11)

Posted on Jun 16, 2011 12:31 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 16, 2011 1:27 AM

Testing DATETOTEXT with today's date (June 16, 2011) and the result cell set to "General" (which is a Number format, not Text), in AppleWorks, I get "16/6/2011", not the serial number for the date.


Using =A4, with the cell format set to "General", I get the number 39248.


Which is the number of days since January 1, 1904.


If that's the result you're looking for, DATEDIF will give it to you in Numbers.


In Numbers, put Jan 1, 1904 in B2, Jun 16, 2011 in C2 and (for a numerical result) the formula below in D2:


=DATEDIF(B2,C2,"D")


For the same result in Text, use this variation:


=""&DATEDIF(B2,C2,"D")


Regards,

Barry

13 replies
Question marked as Top-ranking reply

Jun 16, 2011 1:27 AM in response to Cliff Peters

Testing DATETOTEXT with today's date (June 16, 2011) and the result cell set to "General" (which is a Number format, not Text), in AppleWorks, I get "16/6/2011", not the serial number for the date.


Using =A4, with the cell format set to "General", I get the number 39248.


Which is the number of days since January 1, 1904.


If that's the result you're looking for, DATEDIF will give it to you in Numbers.


In Numbers, put Jan 1, 1904 in B2, Jun 16, 2011 in C2 and (for a numerical result) the formula below in D2:


=DATEDIF(B2,C2,"D")


For the same result in Text, use this variation:


=""&DATEDIF(B2,C2,"D")


Regards,

Barry

Jun 17, 2011 2:30 AM in response to Cliff Peters

May you read carefully ?


The formula calculate the difference between two dates.


You used DATEVALUE to convert a string matching a given system setting into a date

User uploaded file

I use DATE which convert as date a list of three parameters.


User uploaded file


It's DATEDIF which calculate the wanted serial number !

User uploaded file

Of course, if you can't read the descriptions of the functions, I can't help you !


Yvan KOENIG (VALLAURIS, France) vendredi 17 juin 2011 11:20:53

iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7

Please : Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Jun 16, 2011 5:39 AM in response to Cliff Peters

Cliff Peters wrote:

="123"&DATEDIF(DATEVALUE("01-01-1904"),C2,"D")

You are using a localization dependent formula.

Better use one which isn't :

="123"&DATEDIF(DATE(1904,1,1),C2,"D")


Yvan KOENIG (VALLAURIS, France) jeudi 16 juin 2011 14:38:47

iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7

Please : Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Jun 17, 2011 1:34 AM in response to Cliff Peters

It appears that you didn't read carefully.

You used the function DATEVALUE but I use the function DATE.

My formula build on the fly a date according to your settings.


Date (1904,1,1) create 01/01/1904 on a machine using mm/dd/yyyy or dd/mm/yyyy format and 1904-01-01 on system using the international ISO format yyyy-mm-dd.



Yvan KOENIG (VALLAURIS, France) vendredi 17 juin 2011 10:33:12

iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7

Please : Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Jun 18, 2011 12:30 AM in response to KOENIG Yvan

Hi KOENIG Yvan,


Thanks for the information.


I can read the descriptions of the functions, however I can't always understand the descriptions or examples given. This is why the assistance of people like yourself is very helpful.

I had previously looked at the DATE function & it didn't seem suitable for the Date as Text (serial #). It will be useful for other things I'm sure.


You seem a little upset by something I have said here, if I have misunderstood something it is not intentional.

As far as I am aware there is no advanced (just introduction courses) training available in New Zealand for the use of Numbers.


Keep up the great work.

You all do a very good service to the Mac community!


Best regards

Cliff

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

date as text

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