Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: date command error?

From   Steven Archambault <>
Subject   st: date command error?
Date   Mon, 14 Jan 2013 21:19:24 -0700

Hi all,

I am running Stata 12 on a Mac, and am having trouble with the date command.

My datestr values are in the format MM/DD/YY

I am trying to convert these to a date format using

gen dates=date(datestr, "MDY")

dates is generated, but its an empty column. Is there something I'm missing?

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index