VC learning materials collection (18): How to remove system time

xiaoxiao2021-03-06  46

How to remove the system time November 14, 2004 1: Get the system time dates (using getLocaltime) CString Stime, Syear, SMONTH, SDAY; SystemTime Curtime; getLocalTime (& Curtime); Syear.Format ("% D years", Curtime.wyear); SMONTH.FORMAT ("% D Month", curtime.wmonth); SDAY.Format ("% D Day", curtime.wday; stime = Syear SMONTH SDAY; // Curtime.WHour // Curtime .wminute // curtime.WSecond IBM's AFXMessageBox (Stime); it is taken out for integer variables, then transforms to the cstring type to deposit into the database, and finally, when the time is used, the time is subtracted and then converted to the integer Ma Jingfa Published on 15: 09

转载请注明原文地址:https://www.9cbs.com/read-81154.html

New Post(0)