Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • You have to try today: 31Oct2014!!!!!

    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

  • #2
    It is a matter of precision; try:
    Code:
       help precision
    and
       gen double today=`today'

    Comment

    Working...
    X