Minute : An integer between 0 and 59, representing the minute of the dt time. Millisecond : An integer between 0 and 999, representing the millisecond of the dt time.Hour : An integer between 0 and 23, representing the dt hour of day.DayOfYear : An integer between 1 and 366, representing the dt day of the year.DayOfWeek : An enumerated constant that indicates the day of the week in the dt date, ranging from Sunday to Saturday.Day : An integer between 1 and 31, representing the dt day of the month.Here is the list of properties which are instance specific In addition to shared members, DateTime datatype offers instance specific methods and properties. IsLeapYear : Given a four-digit year, returns True if it is a leap year and False otherwise.Use this method to convert dates stored in Microsoft Excel-for example, to. FromOADate : Returns a DateTime value that corresponds to the provided Ole Automation Date, which is a floating-point number representing the number of days from midnight, December 30, 1899.DaysInMonth : Given a year and month, returns the number of days in that month.MaxValue : The largest possible value a DateTime can have.MinValue : The smallest possible value a DateTime can have.UtcNow : The current date and time as set on your system, expressed as coordinated universal time (UTC), also known as Greenwich Mean Time.Today : The current date as set on your system.Similar to the Visual Basic 6 function of the same name. Now : The current date and time as set on your system.In VB.net you can initialize your datetime variable with 7 different ways. Unlike VB6 in VB.net you can initialize DateTime variable with verity of initial values. VB.net provides many new features for DateTime datatype. In this article we will explore some key language features which are frequently used by VB programmers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |