View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
oldyork90 oldyork90 is offline
external usenet poster
 
Posts: 20
Default only the date part

No time component, just the date. This seems a bit much. Is this how
it's done?

Dim dt As Date: dt = Now()
Dim justDate As Date: justDate = DateValue(DatePart("m", dt) & "/" &
DatePart("d", dt) & "/" & DatePart("yyyy", dt))