stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

How to: Extract the Day of the Week from a Specific Date
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=6056
Page 1 of 1
Author:  icon [ Mon Jun 28, 2021 3:03 am ]
Post subject:  How to: Extract the Day of the Week from a Specific Date

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 ?
Author:  renexxxx [ Mon Jun 28, 2021 4:21 am ]
Post subject:  How to: Extract the Day of the Week from a Specific Date

Code: Select all

int weekDay = TimeDayOfWeek(OrderOpenTime());
Author:  icon [ Mon Jun 28, 2021 6:03 am ]
Post subject:  How to: Extract the Day of the Week from a Specific Date

renexxxx ยป Mon Jun 28, 2021 4:21 am wrote:

Code: Select all

int weekDay = TimeDayOfWeek(OrderOpenTime());
Thanks a lot :hi: , works like magic
All times are UTC Page 1 of 1