Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 July 3rd, 2006, 07:32 AM
Authorized User
 
Join Date: Feb 2006
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default Date Function problem

hello

i want to display date in my web page with this format,

saturday, July 3, 2006

but dont know how to do it

can anyone help me. i did not found any date/format function like vb
any suggestion

thanks in advance
ashok sharma

 
Old July 3rd, 2006, 08:01 AM
Authorized User
 
Join Date: May 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Try this:

<%= FormatDateTime(Now(), 1) %>

HTH.
Myself...

 
Old July 3rd, 2006, 08:06 AM
Authorized User
 
Join Date: Feb 2006
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default

is this a vbscript function or asp

if this is vbscript function, is there any equalvalent function in asp


thanks for reply

ashok sharma

 
Old July 3rd, 2006, 08:27 AM
Authorized User
 
Join Date: May 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ASP with VBScript...

 
Old July 3rd, 2006, 08:45 AM
Authorized User
 
Join Date: Feb 2006
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default

is there any equalvalent function in asp


thanks
ashok sharma

 
Old July 6th, 2006, 01:08 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ASP Is not a language. You can use several different languages to write code for ASP pages. VbScript is by far the most common. Javascript is also used but isn't as common as VbScrpt. The standard VB Format function is not available in VbScript, so you can either write your own, or use the FormatDateTime function as suggested above.

Woody Z http://www.learntoprogramnow.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Function desireemm SQL Language 1 March 26th, 2007 04:28 AM
ASP Date Function cancer10 Classic ASP Databases 3 January 5th, 2007 06:35 PM
between date function surendran SQL Server 2000 2 October 19th, 2006 09:31 PM
Date function problem liorlankri ASP.NET 1.x and 2.0 Application Design 1 November 8th, 2004 09:58 AM
ASP Date Function Ken11 Classic ASP Basics 3 September 30th, 2003 02:04 PM





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