Thread: Date problem
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
אלי אלי is offline
external usenet poster
 
Posts: 67
Default Date problem

Hi

Can anyone tell me please why the results of the following code:

Dim dte As Date
dte = Now()
ActiveCell.Value = Format(dte, "Short Date")
End Sub

Is 07/05/2007 (May 7, 2007) instead of 05/07/2007???

Thanks in advance

Eli