Extract date only

Hi there, is there any way to extract or get date only without get time like,

datetime = "9/9/2024 11:50:00";
dateonly = "9/9/2024"

You might use formatDateOnly in your exploration (you need AmiBroker 6.93 for that).

please advise me, how do that in version 6.93??

Version(6.93);
AddColumn( DateTime(), "DT", formatDateOnly );

thanks for continuing support us, how can I get data values based on custom date, knowing as datetime function return date and time, and I want to get custom date values use date only without time. @Tomasz

Use StrToDateTime AFL Function Reference - STRTODATETIME