⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_15406.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:15406 发表者:天花乱追 发表日期:2002-09-18 10:28:25
<br>主题:如何使一个CTime.Format("%y-%m-%d")后得到的年为4位数,而不是2位?
<br>内容:数据库里取出的是4位,用CTime.Format("%y-%m-%d")放到list control里面就是2位了,再从list control里面取出返回到一个date time picker里面用就只剩下两位了且不对了:(
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:天花乱追 回复日期:2002-09-18 10:34:48
<br>内容:原来把%y改为%Y就可以了:)<BR>跟着送分了~~~~
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:啊志 回复日期:2002-09-18 10:37:20
<br>内容:%a <BR>Abbreviated weekday name <BR>%A <BR>Full weekday name <BR>%b <BR>Abbreviated month name <BR>%B <BR>Full month name <BR>%c <BR>Date and time representation appropriate for locale <BR>%d <BR>Day of month as decimal number (01 – 31) <BR>%H <BR>Hour in 24-hour format (00 – 23) <BR>%I <BR>Hour in 12-hour format (01 – 12) <BR>%j <BR>Day of year as decimal number (001 – 366) <BR>%m <BR>Month as decimal number (01 – 12) <BR>%M <BR>Minute as decimal number (00 – 59) <BR>%p <BR>Current locale's A.M./P.M. indicator for 12-hour clock <BR>%S <BR>Second as decimal number (00 – 59) <BR>%U <BR>Week of year as decimal number, with Sunday as first day of week (00 – 53) <BR>%w <BR>Weekday as decimal number (0 – 6; Sunday is 0) <BR>%W <BR>Week of year as decimal number, with Monday as first day of week (00 – 53) <BR>%x <BR>Date representation for current locale <BR>%X <BR>Time representation for current locale <BR>%y <BR>Year without century, as decimal number (00 – 99) <BR>%Y <BR>Year with century, as decimal number <BR>%z, %Z <BR>Time-zone name or abbreviation; no characters if time zone is unknown <BR>%% <BR>Percent sign 
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -