Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct Spacing in ASP 1

Status
Not open for further replies.

campbere

Technical User
Oct 10, 2000
146
US
I am new to ASP and currently reading ASP for Dummies and ASP 3.0 in 21 days so please be patient.

I have some ASP script that I wrote were I am trying to produce the following:

Today is Wednesday June 27 but currently I get
Today is WednesdayJune27

How do I get the correct spacing?

Here is the snippet of code I wrote:

<p>Today is <% =WeekdayName(Weekday(Date)) %>
<% =MonthName(Month(Date)) %>
<% =Day(Date)%> </p>
 
<p>Today is <% =WeekdayName(Weekday(Date)) & &quot; &quot; & MonthName(Month(Date)) & &quot; &quot; & Day(Date)%> </p>

Notice the concatenation operater (&) followed by your desired spaces --

but don't forget your special function, formatDateTime, which could easily just return you a preformatted string -- here's some good reference material on that function:


and bookmark that page -- best vbscript quick reference out there -- will save you much time.

good luck! :)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top