CToD()

 

CTOD()

Converts a character string to a date expression

Syntax

      CTOD(<cDateString>)  --> dDate

Arguments

<cDateString> A character date in format ‘mm/dd/yy’

Returns

<dDate> A date expression

Description

This function converts a date that has been entered as a character expression to a date expression. The character expression will be in the form “MM/DD/YY” (based on the default value in SET DATE) or in the appropriate format specified by the SET DATE TO command. If an improper character string is passed to the function, an empty date value will be returned.

Examples

      ? CToD( "12/21/00" )

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

SET DATE, DATE(), DTOS()

Advertisements

3 responses to “CToD()

  1. Pingback: Harbour All Functions – C | Viva Clipper !

  2. Pingback: Harbour Date & Time Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s