Every Day is Friday

Created at 21 Apr 2023, 13:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DE

dennis.jarchow1997

Joined 20.04.2023

Every Day is Friday
21 Apr 2023, 13:17


DayOfWeek wk = DateTime.Today.DayOfWeek;

Print(wk);

 

 

How can this line of code always say it's Friday ? 


@dennis.jarchow1997
Replies

PanagiotisChar
21 Apr 2023, 13:24

Hi Dennis,

DateTime.Today shows the current day on your computer. Use Server.Time.DayOfWeek.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar