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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Date Formating 1

Status
Not open for further replies.

rochnn

Technical User
Sep 16, 2006
9
US
Hello,

Is there a way to get just the Year and the another statement for the Month Number, and one more for the day number?
 
ahhh very cool

one more quick question

could I do this
Code:
<%
dim year
year = Year(Now())

if year = 2006 then "G" end if%>
 
Code:
<%
Dim CurrentYear
Dim SomeThing

CurrentYear = Year(Now)


If CurrentYear = 2006 Then
  SomeThing = "G"
End If
%>
 
may be you want to write output...if that is the case then:

If CurrentYear = 2006 Then
Response.write "G"
End If

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top