Removing characters from a calendar output

  • 6 July 2020
  • 1 reply
  • 2 views

Badge

Hi all, 

 

I am wanting to create a unique ID which consists of three fields that customers fill out, one of these fields will be a current date.  

The calendar is just the generic field used in K2, and the output is in this form: xx/yy/zzzz or xx-yy-zzzz. 

 

How do I remove these from this output? I am wanting to have my output as xxyyzzzz. 

 

Cheers, 


1 reply

Badge +15

Hi,


 


You can create an expression to format the Calendar control's returned date.


 



 


Then use that expression in your form rules, or map it to another controls. To create an expression, you can select a data label or any text control, then access the list of expressions under the control Properties panel. If you do not intend to use the newly created on the text control or data label, remeber to unselect it after you created a new expression.


 

Reply