TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tharake Gunatilake
NA
53
73.5k
Get no of months.....
Apr 14 2011 7:40 AM
I have a question people..plz help me...here are the code lines.....
public partial class Form1 : Form
{
public DateTime today = System.DateTime.Today;
public DateTime FinalDayOfPayment= Convert.ToDateTime("1/12/2011");
public TimeSpan noOfDays;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = today.ToString();
label2.Text = FinalDayOfPayment.ToString();
noOfDays = today - FinalDayOfPayment;
label3.Text = noOfDays.ToString();
}
}
This gives me the no of days...but a want to get the no of months..
Is there any other way to get it..???
Reply
Answers (
3
)
How to troubleshoot a sqlserver application role not working in vb.net app?
Session Variable Gets Changed