combine date and time w/out symbols

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

Guest

I need to be able to combine into one field the current date and time
together without the symbols. Can anyone help. Let me know if you need more
information
Thanks
 
I would think you would use something like...

=Format(Date(),"MMDDYY") & Format(Time(),"HHNNSS")

I have not tested that. You can probably look at the help files to verify
it.
 
thanks. works like a charm.

Rick B said:
I would think you would use something like...

=Format(Date(),"MMDDYY") & Format(Time(),"HHNNSS")

I have not tested that. You can probably look at the help files to verify
it.
 
thanks. works like a charm.

Works fine... but there's an even simpler alternative:

Format(Now(), "mmddyyhhnnss")

Date() returns the date portion of the system clock date/time; Time()
the fractional time portion; Now() gives you the whole thing.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top