You tagged MFC. So you can use the
COleDateTime
class which uses
DATE
internally and provides the
Format()[
^] function to convert it to a string:
COleDateTime dt(JobStartTime);
CString strJobStartTime = dt.Format(_T("%d/%m/%Y %H.%M.%S"));
The above formats the string like the example from your question.
[UPDATE]
When not using MFC, you can use the function that is used by COleDateTime internally:
VarBstrFromDate[
^].