Ejemplo n.º 1
0
STDMETHODIMP Profile::put_Birthday(DATE newVal)
{
	try {
		CDateTime dt = newVal;
		_bstr_t bstrDate = dt.Format("%Y%m%d");

		gSkypeQueue.SetProperty(L"PROFILE", L"", L"BIRTHDAY", bstrDate);
		return S_OK;
	} catch (const WCHAR * err) {
		return AtlReportError(GetObjectCLSID(), err, GUID_NULL, E_FAIL);
	}
}
Ejemplo n.º 2
0
wxString CTimeFormat::FormatDate(CDateTime const& time)
{
	Impl& impl = GetImpl();

	return time.Format(impl.m_dateFormat, CDateTime::local);
}