Documentation
  • Introduction
  • Components
    • User Interface
      • Button
      • Checkbox
      • Date Picker
      • Floating Button
      • Image
      • Label
      • List Picker
      • List View
      • List View Image and Text
      • Notifier
      • Radio Button
      • Rating Bar
      • Slider
      • Surface View
      • Spinner
      • Switch
      • TextBox
      • Time Picker
      • Web Viewer
    • Layout
      • Horizontal Arrangement
      • Horizontal Scroll Arrangement
      • Space
      • Table Arrangement
      • Vertical Arrangement
      • Vertical Scroll Arrangement
    • Media
      • Audio Picker
      • Camcorder
      • Camera
      • Image Picker
      • Metadata
      • OCR
      • Player
      • QR Code
      • Sound
      • Sound Recorder
      • Speech Recognizer
      • Text To Speech
      • Video Player
      • Yandex Translate
    • Drawing and Animation
      • Ball
      • Canvas
      • Image Editor
      • Image Sprite
    • Sensors
      • Accelerometer
      • Barcode Scanner
      • Clock
      • Finger Print
      • Gravity Sensor
      • Gyroscope Sensor
      • Light Sensor
      • Location Sensor
      • Magnetic Field Sensor
      • NearField
      • Orientation Sensor
      • Pedometer
      • Pressure Sensor
      • Proximity Sensor
      • Sound Sensor
      • Temperature Sensor
    • Social
      • Contact Picker
      • Email Picker
      • Google Account Picker
      • Phone Call
      • Phone Number Picker
      • Sharing
      • Texting
      • Twitter
    • Storage
      • File
      • Firebase DB
      • Fusiontables Control
      • SQLite
      • Tiny DB
      • Tiny Web DB
    • Connectivity
      • Activity Starter
      • Bluetooth Admin
      • Bluetooth Client
      • Bluetooth Server
      • Download
      • Network
      • Web
      • WiFi
    • Google
      • Google Account Picker
      • Google Maps
      • Google Shortlink
    • LEGO Mindstorms
      • NXT Drive
      • NXT Color Sensor
      • NXT Light Sensor
      • NXT Sound Sensor
      • NXT Touch Sensor
      • NXT Ultrasonic Sensor
      • NXT Direct Commands
      • EV3 Motors
      • EV3 Color Sensor
      • EV3 Gyro Sensor
      • EV3 Touch Sensor
      • EV3 Ultrasonic Sensor
      • EV3 Sound
      • EV3 UI
      • EV3 Commands
    • Monetization
      • AdMob Interstitial
      • AdMob Banner
      • AdMob Rewarded Video
      • Billing
      • Leadbolt
    • Device
      • Audio
      • Device Tools
      • Wallpaper
      • Package
      • Screenshot
    • Experimental
      • Push Notifications
      • Cloud DB
      • Notification
  • Blocks
    • Control
    • Logic
    • Math
    • Text
    • Lists
    • Colors
    • Variables
    • Procedures
    • Screen
    • Any Component
  • Testing
    • Live Development
      • Via WiFi
      • Via USB
    • Makeroid Companion
  • Extensions
    • List of Extensions
    • Creating Extensions
  • Other
    • Backpack
    • Release Notes
      • Andromeda
      • Beta Versions
    • Resources
      • Concept Cards
    • Terms of Service
Powered by GitBook
On this page
  • Properties
  • BackgroundColor
  • Day
  • Enabled
  • FontBold
  • FontItalic
  • FontSize
  • FontTypeface (designer only)
  • Height
  • Image
  • Instant
  • Month
  • MonthInText
  • Shape (designer only)
  • ShowFeedback
  • Text
  • TextAlignment (designer only)
  • TextColor
  • Visible
  • Width
  • Year
  • Events
  • AfterDateSet
  • GotFocus
  • LostFocus
  • TouchDown
  • TouchUp
  • Methods
  • LaunchPicker
  • SetDateToDisplay
  • SetDateToDisplayFromInstant
  1. Components
  2. User Interface

Date Picker

PreviousCheckboxNextFloating Button

Last updated 7 years ago

A button that, when clicked on, launches a popup dialog to allow the user to select a date.

Properties

BackgroundColor

Returns the button's background color

Day

the Day of the month that was last picked using the DatePicker.

Enabled

If set, user can tap check box to cause action.

FontBold

If set, button text is displayed in bold.

FontItalic

If set, button text is displayed in italics.

FontSize

Point size for button text.

FontTypeface (designer only)

Font family for button text.

Height

To set it's height.

Image

Image to display on button.

Instant

component for date documentation, conversion, and matriculation.

Month

the number of the Month that was last picked using the DatePicker. Note that months start in 1 = January, 12 = December.

MonthInText

Returns the name of the Month that was last picked using the DatePicker, in textual format.

Shape (designer only)

Specifies the button's shape (default, rounded, rectangular, oval). The shape will not be visible if an Image is being displayed.

ShowFeedback

Specifies if a visual feedback should be shown for a button that as an image as background.

Text

Text to display on button.

TextAlignment (designer only)

Left, center, or right.

TextColor

Color for button text.

Visible

Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.

Width

To set it's width.

Year

the Year that was last picked using the DatePicker

Events

AfterDateSet

Event that runs after the user chooses a Date in the dialog

GotFocus

Indicates the cursor moved over the button so it is now possible to click it.

LostFocus

Indicates the cursor moved away from the button so it is now no longer possible to click it.

TouchDown

Indicates that the button was pressed down.

TouchUp

Indicates that a button has been released.

Methods

LaunchPicker

Launches the DatePicker popup.

SetDateToDisplay

Parameters: (number year, number month, number day)

Allows the user to set the date to be displayed when the date picker opens. Valid values for the month field are 1-12 and 1-31 for the day field.

SetDateToDisplayFromInstant

Parameter: (InstantInTime instant)

Allows the instant to set the year, month, and day to be displayed when the date picker opens. Instants are used in Clock, DatePicker, and TimePicker components.

Instant of date. This instant can be used with

Clock