Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-22791

STD.Date.FromStringToDate Minor Bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2.14
    • Fix Version/s: 7.6.0
    • Component/s: ECL Standard Library
    • Labels:
      None
    • Environment:
      Windows 10

      Description

      Summary: Minor bug - 'STD.Date.FromStringToDate' function supplies default values for year (default of '1900') and month (default of '01'), but not day. If day is not supplied, returns a date (in format YYYYMMDD) which the function itself would be unable to validate. Otherwise seems to work as intended.


      Some examples of (inconsistent) behavior:

      STD.Date.FromStringToDate('', ''); // Yields 19000100 (format not supplied, all default values; invalid date, not zero)

      STD.Date.FromStringToDate('201909', '%Y%d'); // Yields 20190109 (default month; valid date)

      STD.Date.FromStringToDate('201909', '%Y%m'); // Yields 20190900 (default day; invalid date, not zero)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcamper Dan S. Camper
                Reporter:
                burkda01 Dale Burke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: