Hi,

Is it possible to make time format HH:MM  ?

Hi Ayu,

You may use FormatDateTime(DateTime, Text)

Regards,

Swatantra

Hi Ayu Andini,

To view use the option Swatantra Kumar told, to insert a specific time format you can use the mask component: https://www.outsystems.com/forge/component-overview/647/custom-input-masks.

Regards,

Ayu Andini wrote:

Hi,

Is it possible to make time format HH:MM  ?

Hi Ayu Andini,   

  Yes it is possible .you can use this time formate to display hours and minutes 

   FormatDateTime(CurrTime(),"hh : mm")


So, this is the field format HH:MM

Where I can implement the format DateTime ?

Thanks

Ayu Andini wrote:

So, this is the field format HH:MM

Where I can implement the format DateTime ?

Thanks


Hi Ayu Andini,

Here i have attached screnshots. you can change the nullvalue of input variable to NullDate() and Prompt as "HH:MM" in input widget and set the show time property to true and Date format to "%H:%M" in Richwidget calendar.


Regards,

Wasim Khan S

Hi Ayu andini,

As said by Wasim Khan,You can do it at very ease.
Here you go the sample of it, Use "%I:%M" for 12 hours clock format and "%H:%M" for 24 hours format.

Cheers!

Swatantra Kumar wrote:

Hi Ayu,

You may use FormatDateTime(DateTime, Text)

Regards,

Swatantra


You should use FormatDateTime(DateTime, Text) to format data on frontend and save actual timestamp in the database. Keeping DateTime as real object has lot many advantage compared to saving the date as string in your database.

You should continue saving the data in origianl format and show as formatted text.