Format Today function

  • Thread starter Thread starter Grant
  • Start date Start date
G

Grant

I've seen/done this before but I can't remember how to do it. I need to
dormat Today from 11/8/2004 to 110804. I can di it by going to
Format>Cells>Custom then typing the formula. But I thought there was a way
to do it by specifing the format (MM,DD,YY) somwhoe nested in Today.

Any ideas.

Thanks
 
Hi Grant,
I've seen/done this before but I can't remember how to do it. I need
to dormat Today from 11/8/2004 to 110804. I can di it by going to
Format>Cells>Custom then typing the formula. But I thought there was
a way to do it by specifing the format (MM,DD,YY) somwhoe nested in
Today.

You can use the TEXT worksheet function to format the date:

=TEXT(TODAY(),"mmddyy")

Keep in mind that when you do this, you're changing the actual value of the
cell to a string containing "110804". When you apply formatting to the cell
itself, you are keeping the date value and changing only its appearance. So
which way you do this really depends on whether you're going to be using the
value for date calculations or not.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 
Thanks Jake,

The string value is what I was looking for.


Jake Marx said:
Hi Grant,
I've seen/done this before but I can't remember how to do it. I need
to dormat Today from 11/8/2004 to 110804. I can di it by going to
Format>Cells>Custom then typing the formula. But I thought there was
a way to do it by specifing the format (MM,DD,YY) somwhoe nested in
Today.

You can use the TEXT worksheet function to format the date:

=TEXT(TODAY(),"mmddyy")

Keep in mind that when you do this, you're changing the actual value of
the cell to a string containing "110804". When you apply formatting to
the cell itself, you are keeping the date value and changing only its
appearance. So which way you do this really depends on whether you're
going to be using the value for date calculations or not.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Today's Date 1
VBA Go to Today's Date 4
Finding Date in an overseas format 20
Formatting variable problem 2
Date formatting 1
problem formatting a variable 1
formatting a variable problem 3
Date conversion question 6

Back
Top