Formatting the day and time in the subject of the email

SendEmail("poziom_min"+ DateTime(), "poziom_min");

Good morning, please help me. How to display the date and time so that it is clearly visible. The code I currently have does not work as expected and I do not know what I am doing wrong (I tried to format it but to no avail)

image

Users' Guide is your number #1 tool to find the answers:

https://www.amibroker.com/guide/afl/datetimeformat.html

This is specific to my needs, you can modify for yours:

DateTimeFormat( "%Y-%m-%d %A", LastValue( DateTime() ) )

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.