随笔分类 -  C#

摘要:根据年月获取该月天数:DateTime.DaysInMonth(DateTime.Now.Year,DateTime.Now.Month); 阅读全文

posted @ 2007-09-04 11:16 Leon0812 阅读(189) 评论(0) 推荐(0) |

摘要:1using System; 2using System.Drawing; 3using System.Collections; 4using System.ComponentModel; 5using System.Windows.Forms; 6using System.Data; 7using System.Net; 8using System.IO; 9using S... 阅读全文

posted @ 2007-05-24 21:35 Leon0812 阅读(449) 评论(0) 推荐(0) |

摘要:using System;using System.Collections.Generic;using System.Text;using System.CodeDom.Compiler;using System.Reflection;using Microsoft.CSharp;namespace YYC{ /**//**/ /**//// /// 计算表达式的... 阅读全文

posted @ 2007-01-18 17:14 Leon0812 阅读(300) 评论(0) 推荐(0) |

摘要:1、DateTime 数字型System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curren... 阅读全文

posted @ 2006-11-12 06:09 Leon0812 阅读(150) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3