Formatting the =NOW() function ?

D

dim

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.
 
A

Alan

=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.
 
D

dim

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.
 
G

Gord Dibben

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
 
D

dim

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
 
Top