Results 1 to 8 of 8

Thread: Invalid Date Problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Posts
    1,576

    Default Invalid Date Problem

    This may have been answered in another thread but cannot find it. Code:

    Code:
    Object oTestView is a cWebView
    
       { WebProperty=Server }
       Property Date pdToday
    
           Object oWebDateForm1 is a cWebDateForm
               Set piColumnSpan to 0
               Set psLabel to "dateform"
              Set pbServerOnChange to True
           
              Procedure OnChange String sNewValue String sOldValue
                 Forward Send OnChange sNewValue sOldValue
                 
                 WebSet pdToday of oTestView to sNewValue
              End_Procedure
           End_Object
    
           Object oButton is a cWebButton
               Set psCaption to "button"
           
               Procedure OnClick
                   Date dToday
                   
                   WebGet pdToday of oTestView to dToday   *** This generates an Invalid Date Error!!!!
               End_Procedure
           End_Object
    
    End_Object
    With some dates you get "Invalid Date" error (i.e. 07/29/2022), with others no error but you get the incorrect date. Error. What is up with that!!!
    Last edited by Sam Neuner; 9-Aug-2022 at 07:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •