[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current Day!



PureBytes Links

Trading Reference Links


Yep, it does the same on my 7.2 EOD.

Also, if I add a 5 to the calculation, for a file that ends on 
5/01/2001,
DOM:=DayOfMonth();MON:=Month()*100;YR:=Year()*10000;YR+MON+DOM+5
 
I get 20010504. Where did the extra digit go?
 
 
-Corey
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  ----- Original Message ----- 
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black">From: 
  Steve Brann 
  
  To: <A 
  href="mailto:metastock@xxxxxxxxxxxxx"; 
  title=metastock@xxxxxxxxxxxxx>metastock@xxxxxxxxxxxxx 
  Sent: Wednesday, May 02, 2001 5:05 
  AM
  Subject: Current Day!
  
  <FONT face=Arial 
  size=2>Hi
  <FONT face=Arial 
  size=2> 
  I use the 
  following in my explorations to denote the date of the last price data in the 
  format yyyymmdd;
  <FONT face=Arial 
  size=2> 
  <FONT face=Arial 
  size=2>DayOfMonth()+(Month()*100)+(Year()*10000)
  <FONT face=Arial 
  size=2> 
  However, this 
  fails if the date is the first of the month such as March 1st 2001, instead of 
  getting 20010301 I get 20010300!
  <FONT face=Arial 
  size=2> 
  Has anyone else 
  experienced this and if so is there a solution?  By the way, using <SPAN 
  class=632160112-02052001>DayOfMonth() on its own 
  produces 01.
  <SPAN 
  class=632160112-02052001> 
  <SPAN 
  class=632160112-02052001>Thanks in advance
  <SPAN 
  class=632160112-02052001> 
  <SPAN 
  class=632160112-02052001>Steve