Formatting the =NOW() function ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
Im using the =NOW() function to display time and date in my worksheet.

Could someone please tell me a few ways to format it to display differently?
e.g: Date only, time only, date first, time first etc

Thankyou if you can help.
 
=TEXT(NOW(),"dddd dd mmmm yyyy hh:mm:ss")
Move the 'dddd' 'mmmm' etc around to suit or omit what you don't want.
'dddd' gives 'Saturday', 'ddd' gives 'Sat', 'dd' gives 06, same thing with
the month and year,
Regards,
Alan.
 
Thankyou, that works great.

Alan said:
=TEXT(NOW(),"dddd dd mmmm yyyy hh:mm:ss")
Move the 'dddd' 'mmmm' etc around to suit or omit what you don't want.
'dddd' gives 'Saturday', 'ddd' gives 'Sat', 'dd' gives 06, same thing with
the month and year,
Regards,
Alan.
 
Note: you will not be able to use this in any calculations because it is text.

Better you should enter =NOW() in a cell then go to Format>Cells>Number>Custom
and format as you wish.


Gord Dibben MS Excel MVP
 
Thanks Gord, I tried that and it works too. :-)

Gord Dibben said:
Note: you will not be able to use this in any calculations because it is text.

Better you should enter =NOW() in a cell then go to Format>Cells>Number>Custom
and format as you wish.


Gord Dibben MS Excel MVP
 
Back
Top