Documentation > Services API > ServicesInput > ShowDateTime(String,Boolean,Boolean)

ShowDateTime

ServicesInput.DateTime ServicesInput.DateTime creates a group of input fields for managing datetime values. Use with ServicesPostInput.SetDateTime to save as a consolodated field for use in sorting and output.

public System.Void ShowDateTime(String,Boolean,Boolean)

Parameters

NameDescriptionType
fieldName Name to give to the Date/Time field System.String
showSeconds Toggle display of the dropdown menue for seconds System.Boolean
horizontalWrap Toggle Input.StartHorizontalWrapContainer() around the Date/Time field System.Boolean

Code Example

C#

Sample:

            ServicesInput.ShowDateTime("Date_Time", true, true);
            

Connect with Crownpeak