Abreviating WeekdayName to 3 characters

  • Thread starter Thread starter Mettá
  • Start date Start date
M

Mettá

This is a quick one I hope...
<%=WeekdayName(Weekday(CDate(FP_FieldVal(fp_rs,"startd"))))%>
produced Weekday Name as say Monday, I wnat to change this to Mon etc

Thanks M
 
See:
http://www.w3schools.com/vbscript/func_weekdayname.asp

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
I tried
<% strTempday = WeekdayName(Weekday (CDate(FP_FieldVal(fp_rs,"startd"))))
response.write left(strTempday, instr(3,strTempday,""))%>

Which works but I wonder if it's a poor solution?
 
Read the response you got to your original question

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I tried
| <% strTempday = WeekdayName(Weekday (CDate(FP_FieldVal(fp_rs,"startd"))))
| response.write left(strTempday, instr(3,strTempday,""))%>
|
| Which works but I wonder if it's a poor solution?
|
| --
| ---
| | > This is a quick one I hope...
| > <%=WeekdayName(Weekday(CDate(FP_FieldVal(fp_rs,"startd"))))%>
| > produced Weekday Name as say Monday, I wnat to change this to Mon etc
| >
| > Thanks M
| >
| > --
| > ---
| >
| >
|
|
 
Back
Top