Cut time from string ?
I have a date/time in the form of:
12/24/2006 4:21:49 AM
I want only 12/24/2006.
How do I get rid of 4:21:49 AM ?
Formating *shows* only 12/24/2006
but the time is still part of the data.
If I try:
ActiveCell.Formula = Left(ActiveCell.Formula, 10)
or
ActiveCell.Formula = Mid(ActiveCell.Formula, 1, 10)
the string is not shortened
but the number of seconds seems to diminish.
Thank you,
Emory
|