How to: Extract the Day of the Week from a Specific Date

Post Reply
icon
Trader
Posts: 18
Joined: Thu Apr 12, 2012 4:49 pm

How to: Extract the Day of the Week from a Specific Date

Post by icon »

Hello ,
I wonder if it is possible to extract the Day of the Week from open orders ?
I checked the function : OrderOpenTime();
But I don't know if it is possible to extract the day of the week from it,, any suggestions ?
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

How to: Extract the Day of the Week from a Specific Date

Post by renexxxx »

Code: Select all

int weekDay = TimeDayOfWeek(OrderOpenTime());
icon
Trader
Posts: 18
Joined: Thu Apr 12, 2012 4:49 pm

How to: Extract the Day of the Week from a Specific Date

Post by icon »

renexxxx » Mon Jun 28, 2021 4:21 am wrote:

Code: Select all

int weekDay = TimeDayOfWeek(OrderOpenTime());
Thanks a lot :hi: , works like magic
Post Reply

Return to “Coders Hangout”