[Gambas-user] CDATE

Lewis Balentine lewis at ...3412...
Wed Dec 3 17:20:29 CET 2014


Ref: http://gambaswiki.org/wiki/lang/cdate

Date = CDate ( Expression AS Variant ) AS Date
Converts an expression (numerical Float or String) into a Date / Time.
Be careful! The current localization is not used by this function.

Is there a reference for what string formats CDATE recognizes.
The input date I have is in form "ccyymmdd".
Changing it to to "ccyy/mm/dd"did not work.
Reversing it to "dd/mm/ccyy"did not work.

Error is type mismatch: wanted date, got string instead.
Date is "20141215" (aka 15 Dec 2014).

Thank you,

Lewis





More information about the User mailing list