DateTime

Last updated: Mar 5th, 2018

Introduction

The DateTime system operation can be assigned to variables from assigned slot values.

var time = Slot.time;

Operations

getYear

Return type: integer

returns the year of the DateTime value.

getMonth

Return type: integer

returns the month of the DateTime value.

getDay

Return type: integer

returns the day of the DateTime value.

getHour

Return type: integer

returns the hour of the DateTime value.

getMinute

Return type: integer

returns the minute of the DateTime value.

getSecond

Return type: integer

returns the second of the DateTime value.

toString

Return type: string

Converts the DateTime system operation into a string. This string value has the following format:

DD/MM/YYYY - hh:mm:ss

What's next?

Learn how to make Cuneiform plugins for your own conversational platform.