----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(date DATEINTR) 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.748736e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7488224e+12 1.7496864e+12 1.7496864e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7486496e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7489088e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7497728e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7496864e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7499456e+12 1.7498592e+12 1.7498592e+12 1.7498592e+12 1.7498592e+12 1.7498592e+12 1.7498592e+12 1.7498592e+12 1.7498592e+12 end format %tcDD.NN.YY date format %tcDD.NN.YY DATEINTR
Listed 100 out of 53935 observations
Use the count() option to list more
. gen year=year(date)
(53,935 missing values generated)
0 Response to Extracting Year From Date
Post a Comment