Hello all
I coding a Backup mananger this copy files to a other drive via Date Day,Month,Year
Via commandline
example:
BackupManager.exe 10/11/2013 d:\backupfolder
How i can convert this date string to the SYSTEMTIME struct
Gives a better solution or example?
I search here on board without good result
fortunately, you only need the wYear, wMonth, and wDay members
you can set all the other members of the structure to 0
but - you just have to write a little parser that picks out the 3 ASCII numbers and converts them to binary
you need a little logic for the year
if the user enters 99 or 1999, you want 1999 (binary)
if the user enters 13 or 2013, you want 2013 (binary)