Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • why are dates wrong?

    Hello

    Here's my data

    Why are certain dates appearing as missing, when it's the correct code I'm using

    Code:
    gen OpDate=date(opdate, "DMY")
    format OpDate %td
    drop opdate
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input str14 opdate float OpDate
    " 3/11/2008" 17839
    " 2/19/2009"     .
    "  7/1/2009" 17904
    "10/25/2007"     .
    "10/14/2008"     .
    " 6/16/2009"     .
    "12/11/2007" 17482
    end

  • #2
    Your dates are MDY not DMY.

    Comment

    Working...
    X