Re: How to get Week Day from Date using VB.Net



<%@ Page Language="VB" %>
<script language="VB" runat="server">
Sub Page_Load
Dim dt As New DateTime(2005, 6, 20)
Response.Write( dt.DayOfWeek.ToString())
End Sub
</script>
<html>
<body>
</body>
</html>



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Kiran" <kiran_nospam@xxxxxxxxx> wrote in message
news:%23lVU$uWdFHA.1448@xxxxxxxxxxxxxxxxxxxxxxx

Hi,

DateVal.DayOfWeek returns an integer value(0-6) that represents days from sun-sat.

Is there a way to get the Day(like sunday, monday) from a Date Variable using VB.Net
without using a switch case after getting the integer value from DateVal.DayOfWeek, some
sort of direct way.

Thanks
Kiran


.