Hi,
I have used this code for a long time and today I have a problem with the result (maybe it only works after 12:00:00)
Can anybody help me to understand why?
clear
set obs 1
local today : di %tdCYND date(subinstr("`c(current_date)'"," ","",.),"DMY")
gen today=`today'
format today %15.0g
I have used this code for a long time and today I have a problem with the result (maybe it only works after 12:00:00)
Can anybody help me to understand why?
clear
set obs 1
local today : di %tdCYND date(subinstr("`c(current_date)'"," ","",.),"DMY")
gen today=`today'
format today %15.0g
Comment