2282
Views
7
Comments
Time format
Question

Hi,

Is it possible to make time format HH:MM  ?

2018-09-27 18-20-33
Swatantra Kumar
Champion

Hi Ayu,

You may use FormatDateTime(DateTime, Text)

Regards,

Swatantra

2018-09-27 18-20-33
Swatantra Kumar
Champion

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.

2023-07-28 17-00-32
Marco Arede
 
MVP

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,

2020-09-02 13-59-33
Bhavani M

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")


2019-06-02 09-04-06
Ayu Andini

So, this is the field format HH:MM

Where I can implement the format DateTime ?

Thanks

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

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

UserImage.jpg
Naren

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!

Sample.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.