You're welcome. :) If you have to start more threads with different strings, I suggest to allocate dynamic memory for each string to make it local for that thread. The thread can release the memory when it doesn't need it anymore.
The members of the SYSTEMTIME structure are of type WORD. You need to change your format to
time.Format("%02hd/%02hd/%04hd", st.wMonth, st.wDay, st.wYear);
Software Zen: delete this;
Fold With Us![^]