Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2004, 10:10 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to phelkuizon
Default string concatenate

how can i combine the date? i am using this code still i got an error.
<%=monthname(month(strDate))+ " " + =day(strDate)+","+ =year(strDate)%>

 
Old September 13th, 2004, 04:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

<%= ... %> is shorthand for <% Response.Write ... %>, you only need the = once at the beginning, not in front of every variable. Also use & not + to join strings.
<%=monthname(month(strDate))& " " & day(strDate) & "," & year(strDate)%>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenate Rows stonesbg ASP.NET 2.0 Basics 5 February 6th, 2007 06:12 PM
Concatenate numbers and string mushu SQL Language 5 September 14th, 2004 09:20 AM
concatenate with characters lily611 ADO.NET 1 July 21st, 2004 08:10 AM
Concatenate numbers fs22 Javascript 1 April 25th, 2004 06:51 AM
How to Concatenate Data mbbolz SQL Language 4 April 1st, 2004 04:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.