How to suppress Time ?

  • Thread starter Thread starter Milind
  • Start date Start date
M

Milind

In the FileDateTime(filename) command, how to suppress the Time ? Even if
column width is shortened, does not help.

Milind
 
' remove the time portion
Range("A1").Value = clng(FileDateTime(filename))
Range("A1").NumberFormat = "dd/mm/yyyy"

or

' or just format it not to show
Range("A1").Value = FiledateTime(filename)
Range("A1").NumberFormat = "dd/mm/yyyy"
 
Or FIX - negative numbers shouldn't be an issue - good thought. Thanks for
the Alert.
 
Back
Top