As the title of this question suggests, I have a set of data with variable "Qtm" in string format, e.g., 2010-01-07 19:16:33, I would like to convert it to 07jan2010 format, and ignore the detailed hours in the day. How can I do this? Thanks a lot for any kind help.
Some data here:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str19 Qtm "2010-01-07 19:16:33" "2010-01-13 15:25:27" "2010-03-02 15:29:59" "2010-03-15 11:30:11" "2010-05-08 11:12:47" "2010-06-01 03:23:08" "2010-06-02 13:56:21" "2010-06-12 12:48:23" "2010-06-29 12:49:02" "2010-08-11 11:14:59" "2010-09-01 08:58:56" "2010-09-16 14:34:23" "2010-11-16 16:17:54" "2010-01-05 09:04:30" "2010-01-05 14:08:51" "2010-01-16 21:34:55" "2010-02-02 15:32:56" "2010-03-03 17:54:07" "2010-03-04 15:24:07" "2010-03-04 16:08:45" end
0 Response to convert string yyyy-mm-dd hh:mm:ss to %td format
Post a Comment