Contents

# IsDate Function

Tests if a numeric or string expression can be converted to a Date variable.

## სინტაქსი

    CDec(Expression)

## დაბრუნებული მნიშვნელობა:

Boolean

## პარამეტრები:

Expression: Any numeric or string expression that you want to test. If the expression can be converted to a date, the function returns True, otherwise the function returns False.

### Error codes:

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err5 not found).

## მაგალითი:

    Sub ExampleIsDate
    Dim sDateVar As String
        sDateVar = "1997-12-12"
        Print IsDate(sDateVar) ' True
        sDateVar = "12121997"
        Print IsDate(sDateVar) ' False
    End Sub