MTOD()

From Lianjapedia
Revision as of 11:08, 7 October 2019 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Purpose

Function to convert a date string in the format DD-Mmm-YYYY to a date data type

Syntax

MTOD(<expC>)

See Also

AMPM(), CDOW(), CTOD(), CMONTH(), DATE(), DAY(), DMY(), DOW(), DTOC(), DTOM(), DTOS(), DTOV(), MDY(), MONTH(), SET CENTURY, SET DATE, SET MARK, STOD(), TIME(), VTOD(), YEAR()

Description

The MTOD() function is used to convert date strings in the format DD-Mmm-YYYY to date data types. The returned date will be in the format determined by SET CENTURY, SET DATE and SET MARK. If <expC> is not a valid date string, MTOD() will return an empty date.

Example

set century on
? mtod("10-Oct-2008")
10/10/2008