Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2883

Add format mask to parseDateTime()

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.2.0.000
    • Fix Version/s: None
    • Labels:
      None

      Description

      See:
      http://cfmlblog.adamcameron.me/2014/01/enhancement-suggestion-for-parsedatetime.html

      parseDateTime() could be enhanced to take a mask string, so that it can understand any format, provided it can be given a guide as to which parts represent which in the string. eg:

      d = parseDateTime("1997-07-16T19:20:30+01:00", "yyyy-mm-ddTHH:nn:ssX");
      d = parseDateTime("2000AD", "yyyyG"); // sic

      (format mask codes taken from "java.text.SimpleDateFormat")


      Adam

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: