2014年7月13日 星期日

[RESOLVED] Adding day of the week to repeater


I want to put the day of the week  (ie. Monday, Tues)  in my repeater.  Where and how would I code that?


My database doesnt contain day of the week.  And my query looks like this:


@"SELECT     RequestDate, RequestHours
FROM dbo.RequestDates
WHERE (RequestFormID = @requestID)";

And my Repeater looks like this: 




















Request Date Hours Day
<%# Eval("RequestDate"," {0:MM/dd/yyyy}") %> <%# Eval("RequestHours") %>

I have NO IDEA how to do this.  


Any help is appreciated


JS







I have added this line but it doesnt not COMPLETELY do what I want.


<%# Eval("RequestDate"," {0:ddd}") %>






Instead of the 3 letters, I would like the entire word written out.  Any suggestions?




Add another 'd'  <%# Eval("RequestDate"," {0:dddd}") %>



Just that easy.


Thanks, learn something new everyday.  


JS


沒有留言:

張貼留言