R4R
Right Place For Right Person TM
R4R ASP.NET with C# JavaScript Tutorials How to show Day of Week
previous

Home

Next

How to show Day of Week

Step 1. Written below code in your application.

<html>
<script language="javascript">
function get_day()
{
    var getDay=new Date();
    if(getDay.getDay()>0 && getDay.getDay()<6)
    {
    alert("Its a Week Day");
    }
    else
    {
    alert("Its Week End!!!")    }
}
</script>
<body>
<input type="button" onclick="get_day()" value="Show Day" />
</body>
</html>

Step 2. Run the Application. Click on Button.

 

previous

Home

Next


Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

New Updates

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R