CTime GetTime()
-
hallo,
CTime Datum2; Datum2.GetTime(); CString s = Datum2.Format("%Y_%B_%d_");
ich glaub ich steh aufm schlauch. wieso bekomm ich keine werte bei der GetTime() funktion?
mfg, TFTS
-
Versuchs mal mit GetCurrentTime(); ...
Gruß
:: NoName ::
-
hab ich auch schon... ging nich
-
Bestimmt liegt es an deiner Schreibweise
So ist's richrig
CTime Datum = CTime::GetCurrentTime(); CString strDate; strDate = Datum.Format("%Y_%B_%d_");
Gruß
:: NoName ::P.S. was soll bitteschön %B sein ?
Datum:Year - %y
Month - %m
Day - %d
-
zum B: laut msdn schreibt er dann den monat als wort und nicht als zahl...
danke dir werde es ausprobieren
mfg, TFTS