Hi,
I am attempting to creat a very simple Console Application (not .NET) using a default installation of Visual Studio 2005.
i need a function in c++ that recieves a string as date, for example; 10/04/1978, and a mask, such as dd/mm/yyyy, and to convert it to time structure of any type, as time_t or struct tm.
in addition, I need to return the day of the week, a string, as "Sunday".
I can do the conversion, but I don't know how to change it into time_t, and how, if i get a date in format of dd/mm/yyyy, I can take the day of week.
Is there a library that does that? or maybe an open source?
Thanks in advance!
Inbal
:question:
I am attempting to creat a very simple Console Application (not .NET) using a default installation of Visual Studio 2005.
i need a function in c++ that recieves a string as date, for example; 10/04/1978, and a mask, such as dd/mm/yyyy, and to convert it to time structure of any type, as time_t or struct tm.
in addition, I need to return the day of the week, a string, as "Sunday".
I can do the conversion, but I don't know how to change it into time_t, and how, if i get a date in format of dd/mm/yyyy, I can take the day of week.
Is there a library that does that? or maybe an open source?
Thanks in advance!
Inbal
:question:
Last edited: