Formatting the =NOW() function ? - di

06-Oct-07 06:29:03
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.
reply
 
 

Formatting the =NOW() function ? - Alan

06-Oct-07 06:52:32
=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.
reply
 

Formatting the =NOW() function ? - di

06-Oct-07 09:43:02
Thankyou, that works great.
reply
 

Formatting the =NOW() function ? - Gord Dibben

06-Oct-07 12:08:37
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
reply
 

Formatting the =NOW() function ? - di

06-Oct-07 03:19:18
Thanks Gord, I tried that and it works too. :-)
reply
 
Subtract a max value from a row then copy that columns title?
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class