Amazon.com: PC Books || Educational Software || Magazines
Amazon: Books-CA || Software-CA || Books-UK || Software-UK

HTML | Javascript | ASP | PHP | VBScript | SQL | Hardware | PC FAQ| WinXP|

Learn to Build, Upgrade, or Repair your Computer Ebook + PC Safety 101 kwwebservice.com Reasonably priced web development & hosting
ASP Basics
Introduction
Variables & Arrays
Sub & Functions
If Statements
Case Statements
Loop Statements
Date Objects
Form Processing
Text File Objects
Database Access
Adding Record
Updating Record
Deleting Record
Virtual Includes
Cookies
Server Variables
Creating Login Page
E-mail
ASP Books @
CA Amazon
UK Amazon
US Amazon

  :: Home
PC Topics
  :: Build A PC
  :: Windows XP
  :: PC Help
Tutorials
  :: HTML
  :: JavaScript
  :: ASP
  :: PHP
  :: VBScript
  :: SQL
Miscellaneous
  :: Code/Scripts
  :: Forum
  :: Links
  :: Contact us
  :: Tell A Friend
  :: In Somali
  ::
Web Articles
  Top Web Hosting
Reviews
  Processing
Online Card Payment Guide
  Domain name
registration & buying guide
  Getting
a website online guide
  Search Engine
submission & optimization tips
Netfirms Web Hosting
Free trial
Quality business correspondence.
Yahoo! Search Marketing

Displaying Date & Time with ASP

You use time() to get the current time, Date() to get the current date, and now() to get the current date & time.
For example, these examples will Illustrate use of date and time functions.
Example
<%=time()%>
<%=date()%>
<%=now()%>
<%response.write("Current date & time: "&now())%>
<%= FormatDateTime(Date, 0)%>
<%= FormatDateTime(Date, 1)%>
<%= FormatDateTime(now, 3)%>
<%= FormatDateTime(now, 4)%>
<%response.write("Day of the week: "&WeekDay(Date))%>
<%response.write("Day of the month: "&Day(Date))%>
<%response.write("Current Year: "&Year(Date))%>
<%response.write("Current Year: "&Right(Year(Date),2))%>
<%response.write("Today is: "&WeekDayName(WeekDay(Date)))%>
<%response.write("Hour Part: "&(hour(now)))%> <%response.write("Hour part: "&(hour(now)))%>
<%response.write("Minute Part: "&Minute(now()))%>
<%response.write("Second Part: "&Second(now()))%>
Loops Database Access
Listed @ ConsumerVote.com - The Consumer Rated Web Directory
Listed @ ConsumerVote.com - The Consumer Rated Web Directory
PC Articles
  Computer Safety
prevent viruses & Spyware