Date, DateTime: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
[[file:Datetime.jpg]]
[[file:Datetime.jpg]]


'''Description'''
== Description ==


The Date and DateTime controls allow the input of a date. The result is returned as a string in ''value''.
The Date and DateTime controls allow the input of a date. The result is returned as a string in ''value''.
Line 11: Line 11:
To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick.
To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick.


'''Properties'''
== Properties ==


Standard [[properties and methods|properties]] are supported.
Standard [[properties and methods|properties]] are supported.
Line 24: Line 24:
|}
|}


'''Events'''
== Events ==


Standard [[events|events]] are supported.  
Standard [[events|events]] are supported.  


'''Example'''
== Example ==


<pre>
<pre>
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 40: Line 40:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[month|MONTH]], [[time|TIME]]
[[month|MONTH]], [[time|TIME]]
[[Category:Language Reference]]

Revision as of 16:31, 17 August 2012

Description

The Date and DateTime controls allow the input of a date. The result is returned as a string in value.

When the control is selected at runtime, a special date picker is displayed.

It is supported starting with iOS 5. It is not supported on Android at this time.

To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick.

Properties

Standard properties are supported.

value The date value of the control.

For the Date control, use the format 2012-01-06.

For DateTime, use 2012-01-06T09:13:58

Events

Standard events are supported.

Example


Output

(value is set to “2011-10-12” for Date)
(value is set to “2011-11-12T13:59:17.011” for DateTime)

Related Items

MONTH, TIME