AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 how to get the day alone from date in asp.net
Posted by narayananbabu on  7/11/2008 7:54:13 AM Category: AJAX
Add to my favorites
Email to friend
vs2005

Post Your Reply Post New Question

 Viewer's Reply
date
Answered By Srinivas Peteti on 7/13/2008 11:50:08 PM
DateTime.Now.Day
 
Use DateTime class
Answered By Shweta Kulkarni on 3/19/2009 7:49:36 AM
1. If you want Date(Day from current date) then you can use

DateTime.Today.Day.ToString()

2.If you want week day of current Date then then you can use

DateTime.Today.DayOfWeek.ToString()

DateTime class consist of all properties and Methods which you can use for performing operations with Date and Time.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!
Programmers Heaven C# School Book - Free 338 Page eBook
The Art & Science of JavaScript - Free 100 Page Preview!