No Week DateTime function?

Created at 26 Jun 2024, 11:59
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!
GI

Giorgi_1

Joined 23.06.2023

No Week DateTime function?
26 Jun 2024, 11:59


Hi guys, 

Why is there no option within the DateTime function for Week? There's day, date, day of week, hour, minutes, seconds, months and years….. but no week?

If there is a reason that's it's not implemented, could you advise on the best way to get the week open, opening time?

Many Thanks, 


@Giorgi_1
Replies

PanagiotisCharalampous
26 Jun 2024, 12:31

Hi there,

The DateTime class is a .Net 6.0 class, not a cTrader Algo API class. So this part is not developed by cTrader but by Microsoft.

Best regards,

Panagiotis


@PanagiotisCharalampous

Giorgi_1
26 Jun 2024, 14:03

RE: No Week DateTime function?

PanagiotisCharalampous said: 

Hi there,

The DateTime class is a .Net 6.0 class, not a cTrader Algo API class. So this part is not developed by cTrader but by Microsoft.

Best regards,

Panagiotis

Thanks Panagiotis, i'll find a way around it. 

Cheers!


@Giorgi_1

Giorgi_1
26 Jun 2024, 14:03

RE: No Week DateTime function?

PanagiotisCharalampous said: 

Hi there,

The DateTime class is a .Net 6.0 class, not a cTrader Algo API class. So this part is not developed by cTrader but by Microsoft.

Best regards,

Panagiotis

Thanks Panagiotis, i'll find a way around it. 

Cheers!


@Giorgi_1