Display a Day as a string and not number

 

I am trying to find the correct code to display the Day and time 

 Date & Time :"+TimeCurrent()+" Day: "+TimeDayOfWeek(Time[0])

It currently displays as


Date & Time: 2021.09.07 13:50:40  Day: 2


What I want to do is:

Date & Time: 7th Sep 2021  13:50  Day: Tue

Or something similar.

Any guidance would be greatly appreciated.  :)

 
Kristina Suh:

I am trying to find the correct code to display the Day and time 

It currently displays as


Date & Time: 2021.09.07 13:50:40  Day: 2


What I want to do is:

Date & Time: 7th Sep 2021  13:50  Day: Tue

Or something similar.

Any guidance would be greatly appreciated.  :)

See here some examples and get the idea

MQL5 - Return the day of the week
MQL5 - Return the day of the week
  • 2019.12.20
  • www.mql5.com
Is there any function to return the day of the week of today? Like: Sunday, Monday, Tuesday...
 
Navdeep Singh #:

See here some examples and get the idea

thanks for your quick reply.  Will that work on MQL4?

 
Kristina Suh #:

thanks for your quick reply.  Will that work on MQL4?

Yes those examples will work on MQL4

 
Navdeep Singh #:

Yes those examples will work on MQL4

thanks..  I will try it now

 
Kristina Suh #:

thanks..  I will try it now

Great,  with a little adjustment I got it working..  thanks for your help