logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Alan R  
#1 Posted : Sunday, March 6, 2011 5:07:26 AM(UTC)
Alan R

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/23/2009(UTC)
Posts: 51

I have created the following code to get the date of 200 days ago. However, the year 2010 reads 2,010. How can I get rid of the comma?

writeval(ref(month(),-199),2.0)/writeval(ref(dayofmonth(),-199),2.0)/writeval(ref(year(),-199),2.0)

Also is there a more proper way to do this?

wabbit  
#2 Posted : Monday, March 7, 2011 9:05:29 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
There can be significant differences between 200 days ago and 200 bars ago; make sure you are coding what you really want to get. To get rid if the comma in the commentary, change your operating system international number format. wabbit [:D]
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.