12

In Excel, I'm trying to have a cell look something like:

by no later than August 27, 2012

When I try to concatenate a string with a DATE, for example:

="by no later than " & DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY()))

I get an output like this:

by no later than 41118

How can I get a date to show up instead of an integer?

pnuts
  • 58,317
  • 11
  • 87
  • 139
Louis Waweru
  • 3,572
  • 10
  • 38
  • 53

3 Answers3

15

DATE builds a date timestamp. You need to convert that to a string. See this question for how to do so:

It would look something like this:

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())), "DD/MM/YYYY hh:mm:ss")
Community
  • 1
  • 1
Jonathon Reinhart
  • 132,704
  • 33
  • 254
  • 328
6

You don't really need DATE function at all for today's date, you could use just

="by no later than "&TEXT(TODAY(),"mmmm d, yyyy")

barry houdini
  • 45,615
  • 8
  • 63
  • 81
-3

If you format the cell containing your number (41118) as Date, you'll get exactly 27.8.2012. Simple!

Kashish Arora
  • 900
  • 5
  • 25
  • 39
Buddy
  • 3
  • 1