2 Replies Latest reply on Mar 5, 2008 7:59 PM by mac_55

    Date annoyingness

    mac_55
      Hi. I'm looking to convert a string in the form DD/MM/YYYY J:NN but I've just seen that the parseDateString method of dateformatter is protected. How can I convert this to a date object?

      Thanks!
        • 1. Re: Date annoyingness
          ntsiii Level 3
          This is one of those cases where I just took the easy way out and wrote a utility function myself. It is quite easy to use the AS Date() class to assemble any date or string you want.

          There is no magic in my stuff, and I can post my DateUtil class if you want, but you'll probably be happier to just roll your own.

          Tracy
          • 2. Re: Date annoyingness
            mac_55 Level 1
            I'm sorry, would you mind posting your class? I always get confused with dates and stuff, they do my head in :D

            I must get round to reading about them properly.

            Thanks :)