View Single Post
  #1 (permalink)  
Old June 12th, 2008, 11:49 PM
Archdeacon Archdeacon is offline
Registered User
 
Join Date: Jun 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Odd InputBox error

Can anyone please explain the following weird inconsistency??? My Regional Setting is confirmed as (Short Date): dd/mm/year so why does this happen when i run the script below??

Wscript.Echo Date 'Shows: 13/06/2008
strValue = InputBox("Enter Start Date:","Test", Date) 'Shows: 06/13/2008 in the box.
Wscript.Echo Date 'Shows: 13/06/2008

Any DateAdd calculation only happens on the (incorrect) "06/13/2008" value.


Reply With Quote