<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.appstudio.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cmatrix</id>
	<title>NSB App Studio - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.appstudio.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cmatrix"/>
	<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/Special:Contributions/Cmatrix"/>
	<updated>2026-07-12T05:39:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Date,_DateTime&amp;diff=2733</id>
		<title>Date, DateTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Date,_DateTime&amp;diff=2733"/>
		<updated>2013-03-03T21:12:33Z</updated>

		<summary type="html">&lt;p&gt;Cmatrix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Datetime.jpg|||Date and Time on iOS]][[File:DateAndroid.png|307x325px|right|Date control on Android Chrome]]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
The Date and DateTime controls allow the input of a date. The result is returned as a string in &#039;&#039;value&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When the control is selected at runtime, a special date picker is displayed.&lt;br /&gt;
&lt;br /&gt;
It is supported starting with iOS 5. It is not supported on Android at this time.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
&lt;br /&gt;
Standard [[properties and methods|properties]] are supported.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| value || The date value of the control.&lt;br /&gt;
&lt;br /&gt;
For the Date control, use the format 2012-01-06.&lt;br /&gt;
&lt;br /&gt;
For DateTime, use 2012-01-06T09:13:58&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Events ==&lt;br /&gt;
&lt;br /&gt;
Standard [[events|events]] are supported. &lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rem Date Example - set to current date on start&lt;br /&gt;
Function Form1_onshow()&lt;br /&gt;
  Date1.value = FormatDateTime (Date, &amp;quot;yyyy-mm-dd&amp;quot;)&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(value is set to &amp;quot;2011-10-12&amp;quot; for Date)&lt;br /&gt;
(value is set to &amp;quot;2011-11-12T13:59:17.011&amp;quot; for DateTime)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Items ==&lt;br /&gt;
&lt;br /&gt;
[[month|Month]], [[time|Time]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Controls]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Common]]&lt;/div&gt;</summary>
		<author><name>Cmatrix</name></author>
	</entry>
</feed>