Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
date decimal back to date
#13
I had to subtract 1 from the i...but it works!

Code:
Copy      Help
DATE d="02/28/07"

str s
s.time(d "%j")
out s

int i=val(s)

DATE d2=_s.time("01/01/%Y") ;;beginning of this year
i-1
d2=d2+i

str s2
s2.time(d2 "MM/dd/yy")
out s2


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)