Gambas Documentation - /comp/gb.mysql/_mysql/currenttimestamp

/comp/gb.mysql/_mysql/currenttimestamp

# _MySQL.CurrentTimestamp (gb.mysql)

Function CurrentTimestamp ( [ Format As String ] ) As String

Returns a formated Timestamp.

Format: Is the format to use.

See Format for more information.

### Examples

    Dim hCon As New Connection

    With hCon
      .Type = "mysql"
      .Port = "3306"
      .Host = "localhost"
      .User = "root"
      .Password = "mypass"
      .Name = "Gambas"
      .Open()
    End With

    hCon.MySQL.Charset = "utf8"

    Print hCon.MySQL.CurrentTimestamp("yyyy-mm-dd")