C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Datetime Manipulation in Vb.net - Part 1


Posted Date: 18 Aug 2008    Resource Type: Articles    Category: .NET Framework

Posted By: D.Jeya kumar(JK)       Member Level: Diamond
Rating:     Points: 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  
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: String Manipulation - Part 4
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!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use