Stefan Motz
asked on
vbScript - How to display the day of the week instead of the date
Hi Experts,
I have a classic ASP page which displays the date from a datetime column of my SQL Server database:
<%=rs("PostDate")%>
Is it possible to display the day of the week (e.g. Monday) instead of 4/25/2016 ?
How should I modify <%=rs("PostDate")%> in order to achieve this?
Thank you for your help.
I have a classic ASP page which displays the date from a datetime column of my SQL Server database:
<%=rs("PostDate")%>
Is it possible to display the day of the week (e.g. Monday) instead of 4/25/2016 ?
How should I modify <%=rs("PostDate")%> in order to achieve this?
Thank you for your help.
ASKER
Hi Monty, long time no see.
This gave me the following error: "Invalid procedure call or argument: "WeekdayName"
This gave me the following error: "Invalid procedure call or argument: "WeekdayName"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much for your quick response! This one worked.
ASKER
I've just noticed that I never closed this question. I'm sorry for the delay.
<%=WeekdayName( rs("PostDate") )%>