K2 Email Calendar control DATE shows wrong format when sent in Email Action

  • 16 June 2017
  • 2 replies
  • 23 views

Userlevel 3
Badge +16

Hi,

 

Anyone else come across this?

 

On my form, I have the calendar control set to show short date and user settings. This displayed todays date as 16/06/2017 (UK format) this is correct.

 

If i then put that Calendar control in the body of an email (In Smartforms Action Send Email), its comes out in like this 2017 - 06 - 16

 

I even tried transferring the value of the calendar control to a data label and trying various styling options and data type options, wrong changes the appearance when it appears via email....

 

Please don't tell me this is another bug....


2 replies

Badge +10

A couple things you can do here....

 

1.- Use the Custom Format of the Calendar Control and tweak it the way you need it.

 

2.- Use an expression that Format Date/Time and pass the DateTime value and format it correctly then use it to populate the final control.

 

Both should work great, we even use it format Military Time =)

 

Hope this helps.

Dino.

Userlevel 3
Badge +16

Cheers Caveman,

 

1) - this doens't work, it displays fine on the form, but it's a different story adding it to the EMAIL ACTION

 

2) This worked, I had to add it to a data label to achieve this, using formatdatetime function.

 

Did the same with TIme using expressions............

 

Thanks

Reply