Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 1656 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Student has guitar class on Monday at 13:00. I have fields for instrument, day of week and time of day (time field). I can format the time field to show only hours and minutes, great.

When I make a calculation  field to show--- "Your (instrument) lesson is on (day of week) at (time of day)" --- hours, minutes AND seconds show up again in the time of day. How do I get rid of the seconds in this calculation?

Posted (edited)

You can do your own formatting =

Hour ( Timefield ) & SerialIncrement ( ":00" ; Minute ( Timefield ) )

 

Alternatively, if this is on the same layout, you could "steal" the already formatted time as displayed in your time field  =

GetLayoutObjectAttribute ( Timefield ; "content" )

 

But do you really need a calculation field for this? If this is for printing/display, you could simply merge the fields into a text object and apply the same formatting to the object as you have to the time field.

 

Edited by comment
Posted

Can you explain the first option a little? I don get what the serialIncrement does...

SerialIncrement ( ":00" ; Minute ( Timefield ) )
Posted

Interesting. Thank you.

And yes, "merge field" is good for me here:)

This topic is 1656 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.