ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   date format (https://www.excelbanter.com/excel-worksheet-functions/51246-date-format.html)

Chris Lane

date format
 
Hi
I need to insert a date into header, something like

="Today's date is "&Now()

However, the formula returns only the date number - I cannot figure out how
to return the date?

Can anyone assist me, please?



Dave Peterson

date format
 
="Today's date is "&text(today(),"mm/dd/yyyy")



Chris Lane wrote:

Hi
I need to insert a date into header, something like

="Today's date is "&Now()

However, the formula returns only the date number - I cannot figure out how
to return the date?

Can anyone assist me, please?


--

Dave Peterson

bpeltzer

date format
 
Dates and times are just specially formatted numbers, so you have to tell
Excel how to format the number returned by the Now() function. Ex: ="Today
is " & TEXT(TODAY(),"Mmm dd")

--Bruce


"Chris Lane" wrote:

Hi
I need to insert a date into header, something like

="Today's date is "&Now()

However, the formula returns only the date number - I cannot figure out how
to return the date?

Can anyone assist me, please?




Chris Lane

date format
 
Excellent, thanks Dave and bpeltzer

"Dave Peterson" wrote in message
...
="Today's date is "&text(today(),"mm/dd/yyyy")



Chris Lane wrote:

Hi
I need to insert a date into header, something like

="Today's date is "&Now()

However, the formula returns only the date number - I cannot figure out
how
to return the date?

Can anyone assist me, please?


--

Dave Peterson





All times are GMT +1. The time now is 07:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com