22 nd Oct 2014 09:39:00
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
IP 2 Location
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2013 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 9150 170 357.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Type Conversion Functions Type Conv. Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

CDate Function - VB 6.0 (Visual Basic 6.0)

Returns an expression that has been converted to a Variant of subtype Date.
Syntax:
CDate(date)
Parameter Description
date Required. The date argument is any valid date expression.

Return Data type:
Date
Example:
CDate Returns Results in System's Short Date Format.
Current System's Short Date Format: dd/MM/yyyy.


Statement Result Remark
CDate("May 14 1977") 14/05/1977  
CDate("14/May/1977") 14/05/1977  
CDate("14/05/1977") 14/05/1977  
CDate("05/14/1977") 14/05/1977  
CDate(0) 12:00:00 AM  
CDate(-1) 29/12/1899  
CDate(DateValue(Date)) Current System Date
CDate(unknown) 12:00:00 AM uninitialized Variable
CDate(Null) Null  
CDate("abcd") Error Type mismatch
CDate(True) 29/12/1899 True - Non Zero
CDate(False) 12:00:00 AM False - Zero
Go to top

Migration from Visual Basic 6.0 (VB 6.0) to
  CDate Function in VB Script (VBS)
  CDate Function in JScript (JS)
  CDate Function in Active Server Pages (ASP)
  CDate Function in PHP Script
  CDate Function in MS-Access
  CDate Function in MS SQL Server
  CDate Function in Oracle
  CDate Function in C Language
  CDate Function in C++ Language
  CDate Function in Foxpro
  CDate Function in Fortran
  CDate Function in MS Excel Sheet
Go to top
 





© 2005 - 2007 Chennaiiq.com. All Rights Reserved.

Our Sites: ChennaiIQ.com || Tamil Calendar || Tamil Panchangam || KP Astrology
Our Blogs: Tamil Calendar



38