Barry Katcher
Well-known Member
- Joined
- Feb 25, 2002
- Messages
- 4,053
Hello, group.
If this line of code:
returns this: 6/30/2003
and this line of code:
returns this: 8:24:15 PM
then why doesn't this:
return this: 6/30/2003 8:24:15 PM?
What it does return is 6/30/2003 12:00 AM.
Anyone have an idea what format I should be using to get the actual time and not have it default to 12:00? Thanx in advanx.
If this line of code:
Code:
ActiveCell.FormulaR1C1 = (Date)
returns this: 6/30/2003
and this line of code:
Code:
ActiveCell.FormulaR1C1 = (Time)
returns this: 8:24:15 PM
then why doesn't this:
Code:
ActiveCell.FormulaR1C1 = (Date)
Selection.NumberFormat = "m/d/yyyy h:mm:ss AM/PM"
return this: 6/30/2003 8:24:15 PM?
What it does return is 6/30/2003 12:00 AM.
Anyone have an idea what format I should be using to get the actual time and not have it default to 12:00? Thanx in advanx.