DatePickerFunctions

Last Updated:

Actions for working with Date Picker object


[How To Read This Reference]
GetDate
DRD
Action to get date from a date picker component and assign it to a variable.
SetDate
DRD
Action to set date for a date picker component according to its DateValue.

DatePickerFunctions::GetDate
DRD

Action to get date from a date picker component and assign it to a variable.


Fields: [ ]=Optional with Default Value
  1. VariableName
    The name of variable to contain the date string of DatePicker.

    The name of variable to contain the date string of DatePicker. The date string will be in format "MM-dd-yyyy".

Examples:
  • T, WINDOW, DatePicker, GetDate, currentDate
    The variable currentDate will contain the date string in format "MM-dd-yyyy". If today is "Dec 05, 2012", then currentDate will equal to 12-05-2012.


[How To Read This Reference]

DatePickerFunctions::SetDate
DRD

Action to set date for a date picker component according to its DateValue.


Fields: [ ]=Optional with Default Value
  1. DateValue
    DateValue to set.

    DateValue to set. It can be in format of "MM-dd-yyyy", "MM/dd/yyyy" or "MMM dd yyyy". When you give it as the first two formats, you MUST quote it; otherwise the character '-' and '/' will be considered as arithmetic sign and the parameter will be calculated as arithmetic expression.

Examples:
  • T, WINDOW, DatePicker, SetDate, "Dec 24 2012"
    The date of DatePicker is set to "Dec 24 2012".


  • T, WINDOW, DatePicker, SetDate, "04/24/2012"
    The date of DatePicker is set to "Dec 24 2012".


  • T, WINDOW, DatePicker, SetDate, "04-24-2012"
    The date of DatePicker is set to "Dec 24 2012".


[How To Read This Reference]