Post Closed
9
Views
2
Comments
Solved
Default time format

Hello Everyone,


I have one local variable with datatype ' Time '.

I want to set a default time 9:00AM to that variable.

How to set this time in this format(HH:mm:ss) to that variable?


Thanks in advance

Solution

Hi Vignesh,


You can't  directly give this format in the set  default property.

but you can just add #09:00:00# in the default property of your time variable .
As we know time datatype uses only (00:00:00) format.
so at the time of display or usage you just can use
FormatDateTime(timevariable,"h:mm:tt").

This will get u 9:00AM format.

Best Regards,

Rashid

mvp_badge
MVP

Hello Vignesh,

This is a duplicated post from this one:

https://www.outsystems.com/forums/discussion/73201/default-time-format/#Post299632


Therefore, I'm going to close this thread.


Kind regards,

Rui Barradas