Asp.net basic letter

Source: Internet
Author: User

1. DateTime numeric type
System. DateTime currentTime = new System. DateTime ();
1.1 take the current year, month, day, hour, minute, second
CurrentTime = System. DateTime. Now;
1.2 get current year
Int Year = currentTime. Year;
1.3 take the current month
Int Month = currentTime. Month;
1.4 get the current day
Int Day = currentTime. Day;
1.5 current time
Int = currentTime. Hour;
1.6 get the current score
Int = currentTime. Minute;
1.7 takes the current second
Int Second = currentTime. Second;
1.8 takes the current millisecond
Int Millisecond = currentTime. Millisecond;
(The variable can be in Chinese)
2. Int32.Parse (variable) Int32.Parse ("constant ")
Convert string to 32-digit font

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.