Dear Statalist:
I've been searching other posts and the help date command, but still having trouble doing this.
I would like to change the date format from the current 01oct2018 (21458) to 20181001 (YMD format).
My date looks like this.
Thanks.
I've been searching other posts and the help date command, but still having trouble doing this.
I would like to change the date format from the current 01oct2018 (21458) to 20181001 (YMD format).
My date looks like this.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int(announcement_open_date announcement_close_date) 22270 22278 22476 22482 22130 22138 21782 21791 22434 22440 22026 22028 21565 21580 22029 22060 22448 22462 22406 22413 21759 21769 21539 21552 21816 21822 21469 21479 21474 21480 22076 22089 21855 22218 22064 22085 21630 21640 22340 22344 22329 22333 22270 22291 21861 21865 21801 21805 21725 21731 22445 22449 22477 22498 22148 22152 22013 22026 22022 22028 21963 21972 22210 22216 22076 22089 21777 21790 22455 22469 21733 21742 21748 21755 21747 21749 22076 22089 21899 21909 21966 21986 22133 22147 21672 21676 21824 21840 22533 22543 21859 21882 22483 22494 21623 21629 22476 22484 22515 22522 21550 21730 21997 22006 21959 21983 22536 22546 21875 21885 21966 21972 21693 21707 22119 22132 22448 22462 21910 21913 22246 22272 22426 22428 22098 22105 21572 21578 22153 22174 22151 22166 22027 22060 22414 22428 22508 22522 22397 22403 22504 22517 21879 21893 22126 22139 22319 22328 21809 21815 21487 21489 22462 22470 21760 21770 22349 22363 22519 22526 21824 21833 21984 21987 22180 22193 22411 22432 21490 21854 21970 22280 22061 22067 21752 21759 22349 22358 21615 21621 21852 21858 22271 22278 21760 21767 22315 22321 22086 22095 21515 21536 21852 21859 21693 21703 22434 22447 22533 22539 end format %td announcement_open_date format %td announcement_close_date

Comment