Print Page | Close Window

Simple Date Problem.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=22848
Printed Date: 29 March 2026 at 12:01pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Simple Date Problem.
Posted By: deepak
Subject: Simple Date Problem.
Date Posted: 07 March 2007 at 3:30am

In ASP:

<%=NOW()%> is printed as : 3/7/2007 8:57:34 AM
 
 
How to print : 3/7/2007 only.
 
 
I need Out-put only in MM/DD/YYYY or in  DD/MM/YYYY format.
 
 
 
Thanks, In Advance.



Replies:
Posted By: Freon22
Date Posted: 08 March 2007 at 2:47pm
In vbscript it is <%=Date%>
 
In vb.net it is Date.Today
 
Google it
 
http://www.w3schools.com/vbscript/func_date.asp - http://www.w3schools.com/vbscript/func_date.asp



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net