Count Calendardays


0
0

Hello

I would like to add an label which shows me the current day. But instead of the date, it would count the calendar days (not business days). Day 1, Day 2, Day 3, Day 4, Day 5 and then start from new..Day 1…

I only got some experience with thinkscript when it comes to add labels related to studies.

 

Thanks.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on September 21, 2018 7:28 am
81 views
0

The email address used when you logged in is invalid. You tried to submit a comment using the “Post Your Answer” box at the bottom of thread. This is reserved only for new answers to the question. Not for comments. I attempted to notify you via email but the address on file is invalid.

( at September 26, 2018 7:00 am)
0
Private answer

For this we simply employ a built-in function: GetDayOfWeek()

Details here: http://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Date—Time/GetDayOfWeek.html

The code would look like this:

AddLabel(yes, Concat("Day Of Week: ", GetDayOfWeek(GetYYYYMMDD())), Color.GRAY);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 21, 2018 10:27 am