Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











FUNCTION:  CDate( )

Implemented in version 1.0
 
You can determine the expression subtype by using the function VarType( ).
 
CDate(Date)
 
The CDate function converts any valid date and time expression to the variant of subtype Date.
 
The default date output will be of the format:  **/**/** The default time output will be of the format:  **:**:** *M Converted date values can range from January 1, 100 to December 31, 9999
 
Code:
<% anydate = "June 26, 1943" %>
<% =CDate(anydate) %>

 
Output:
6/26/43
 
Code:
<% anydate = #6/26/43# %>
<% =CDate(anydate) %>

 
Output:
6/26/43
 
Code:
<% anytime="2:23:59 PM" %>
<% =CDate(anytime) %>

 
Output:
2:23:59 PM


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information