All product information in wiki.bizagi.com is only valid for Bizagi BPM Suite 9.1.X.
For newer Bizagi BPM Suite versions (10.X and up) please visit the User Guide.
 

Format Date

From Business Process Management, BPM and Workflow Automation Wiki | BizAgi BPMS

Jump to: navigation, search

<keywords content="keywords"> date, dates, format, change, time, datetime, date-time, date/time, minimum value, maximum value, default value </keywords>

Contents

Date handling in Forms

Date Formats

In the Form Editor, for the Date type attributes that are not editable, there is a new tab that allows the user to configure the date format or the Time format.


Image:Creating_Forms8_Image004.jpg


To use a different format, uncheck the Use Regular Format option.


Image:Bulletazul.gif Check or uncheck Use Short Date option, to change the way the date is shown:

When the Short Date is TRUE, there has to be a Format selected.


Image:Creating_Forms8_Image006.jpg





Image:Bulletazul.gif The Separator field is only enabled for dates in short form. It allows the user to select the type of separator for the date.


Image:Creating_Forms8_Image007.jpg


Image:Bulletazul.gif When the Filed has a Time Format, the option Time Format is available.


Image:Creating_Forms8_Image008.jpg


Image:Bulletazul.gif The Date Sample field allows you to see an example of the date with the format you have selected


Image:Bulletazul.gif Date Format Properties do not allow you to display only the day, month or year of an specific date. To do it you have to define and expression to store the desired value into an Integer Type Attribute.

To obtain the year of an specific date:

var Date_var = <DateTypeAttribute>;
var Year_var = Date_var.Year;
<IntegerTypeAttribute> = Year_var;
To obtain the month of an specific date:
var Date_var = <DateTypeAttribute>;
var Month_var = Date_var.Month;
<IntegerTypeAttribute> = Month_var;
To obtain the day of an specific date:
var Date_var = <DateTypeAttribute>;
var Day_var = Date_var.Day;
<IntegerTypeAttribute> = Day_var;


You can insert the attributes where you stored the values of the day, month and year into the activity forms to be able to visualize them.



Selecting Older Dates

By default, Bizagi will create the date-time attribute from 1990, so if the user needs to select an older date than the one displayed in the control, it can be typed in the cell.

However if the list of dates in the control wants to be displayed with older dates than the ones shown, a minimum value needs to be configured. To do this, edit the attribute in the Form Wizard and set the Minimum Value.

1. First, go to the Form Wizard and select the date time render.



2. Then, go to Properties and edit the minimum value property.



3. When the render is displayed in the form, it will appear with the minimum value defined.


<comments />