Title: Problem with date Metatags

Windows 2000, Witango 5.0.1.062

I'm having a problem with using the date-based metatags on dates entered with 2-digit years.

ISDATE works fine and recognizes both 4-digit and 2-digit years.  The  documentation for the other tags (DAYS, DATEDIFF, DATETOSECS) says that they will convert 2-digit years to 4-digit years (i.e., 00-36 become 2000-2036, 37-99 become 1937-1999), but that's not happening correctly.

The standard dateFormat is set to the default (%m/%d/%Y).  I've looked for other configuration settings, but haven't found any.  I tried searching the list archives, but didn't find any previous mention.

Is anyone familiar with this problem?

Thanks!     jamileh


Examples:

Witango code
     needby date:  <@ARG A5#NeedBy_Date><br>
        isdate:  <@ISDATE VALUE="<@ARG A5#NeedBy_Date>"><br>
        datediff:  <@DATEDIFF DATE1="<@ARG A5#NeedBy_Date>" DATE2="<@CURRENTDATE>"><br>
        days:  <@DAYS DATE="<@ARG A5#NeedBy_Date>" DAYS="0"> <br>
        datetosec:  <@DATETOSECS DATE="<@ARG A5#NeedBy_Date>"> <BR>
        dateformat:  @@dateFormat

Example 1 (working) date entered 04/09/2004 gives output
     needby date: 04/09/2004
     isdate: 1
     datediff: 3
     days: 04/09/2004
     datetosec: 1081468800
     dateformat: %m/%d/%Y

Example 2 (not working) date entered 04/09/04 gives output:
     needby date: 04/09/04
     isdate: 1
     datediff: -36522
     days: 04/09/1904
     datetosec: -2074291200
     dateformat: %m/%d/%Y

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to