C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

Datetime Manipulation in Vb.net - Part 1


Posted Date: 18 Aug 2008    Resource Type: Articles    Category: .NET Framework
Author: D.Jeya kumar(JK)Member Level: Diamond    
Rating: 1 out of 5Points: 7



Date Time manipulation in Vb.net

Vb.net supports DateTime and formatting a Date time in a convenient and easy manner. Date time provides many features to work with date and time for different formats. We will see the format before seeing the functions and implementation.

Below are the supported formats.

Formats for Date and time
Current date is 18/8/2008 then
dd - 18
ddd - Mon
dddd - Monday
M - August 18
MM - 08
MMM - Aug
MMMM- August
Y - August, 2008
yy - 08
yyy - 2008
yyyy - 2008
yyyyy - 02008(will add leading zeros)
yyyy g - 18-08-2008 A.D.
hh - 03(hours)
HH - 15(hours in railway time)
mm - 10(minutes)
ss - 27(Seconds)
tt - AM or PM
zzz - GMT

We can use the above formats in combined
For Ex:


Format(DateTime.Now,”dd, MMM, yyyy g)


Will giev the below result
18, August, 2008 A.D.

In next article we will see more function od Date and Time.

-End of part 1-



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
DateTime formats in .net  .  DateTime Formats and functions In vb.net  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Don't Burn Your Base Class
Previous Resource: Datetime Manipulation in Vb.net - Part 2
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use