The Weekday() and WeekdayName() functions are used together to display
either full or abbreviated day names. For example, to get the date as Sunday, February 11, without the year
imposed by Dreamweaver??™s standard formats, I would use code like this:
<%= WeekdayName(Weekday((rsEvents.Fields.Item(???showDate???).Value)))
& ???, ???
MonthName(Month((rsEvents.Fields.Item(???showDate???).Value)))
& ??? ???
Day((rsEvents.Fields.Item(???showDate???).Value))
%>
There are commercial solutions to the problem of limited Date/Time formats in ASP. The DWfaq Date/Time
Format Suite from www.dwfaq.com/store/ contains more than 100 date formats and allows you to customize
each one using the Edit Format steps in the previous section.
ColdFusion developers have a much easier way of manipulating times and dates with the TimeFormat()
and DateFormat() functions. For example, here??™s the ColdFusion code for displaying a date in my example
format (such as Sunday, February 11):
#DateFormat(???#rsEvents.showDate#???, ???dddd, mmmm d???)#
Some databases, including Access, allow fields to be set up as hyperlink types. Although it may
not seem logical, fields containing paths to images should be a text type, not a hyperlink type.
Hyperlink type fields are used only inside Microsoft Access applications and are never used for live sites.
Pages:
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206