You must Sign In to post a response.
  • Category: .NET

    Find the no. of days from the no. of week

    how to find the number of days from the given number of weeks in c sharp

    eg:
    input-No. of weeks:3
    output-No. of days:21










































    thanks in advance
  • #620010
    If you want to get no. of days based on no.of week then you can try :

    int noofday=noofday*7;

    if you want to get based on calender then let me know.

    If it helps you then Rate this.

    Best Regards,
    Manoranjan Sahoo
    http://www.dotnetsquare.com
    Blog: http://blog.msahoo.net

  • #620037
    Hi
    Below code to find the number of days from the given number of weeks.
    Put this code in .aspx.cs.
    protected void Button1_Click(object sender, EventArgs e)
    {
    int NoOfweek = Convert.ToInt32(TextBox1.Text);

    int NoOdDays = NoOfweek * 7;

    Label2.Text = "Total No of Days " + NoOdDays.ToString();
    }

    I hope it will help for you.
    Thanks
    S.Suresh

    "IF YOU WANT TO SHINE LIKE A SUN FIRST YOU HAVE BURN LIKE IT".


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.