Sunday, 3 June 2012

VB.NET - How to convert date to quarter, month and year

        Response.Write("Month number: " & DateTime.Now.Month.ToString())
        Response.Write("<br />")
        Response.Write("Year: " & DateTime.Now.Year.ToString())
        Response.Write("<br />")
        Response.Write("Quarter: " & ((DateTime.Now.Month - 1) \ 3) + 1)



1 comment:

  1. Nice post

    http://educationandintertainment.blogspot.com

    This blogs contain educational materials to help for programmer,students who studied courses like MCA, BE,B.Tech,Computer engineering etc and subjects includes like vb.net , Asp.net c sharp .net ,c,c++,sql,procedural language, vb.net,film animation,computer education etc.

    ReplyDelete