This is a migrated thread and some comments may be shown as answers.
Time Formating
3 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
ankit
Top achievements
Rank 1
ankit asked on 22 Jun 2011, 06:34 PM
I have a field from the database that is an integer which is basically number of seconds.
but i want to display it as HH:MM:SS, Is there a way to do that using expression in the reports or it has to be done in code behind.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Jun 2011, 02:11 PM
Hello ankit,

You can use an User Functions to convert the integer (seconds) into DateTime or correctly formatted string. For example check out the following code snippet:

public static DateTime ConvertToDateTime(int seconds)
{
    //TO DO convert seconds to DateTime
    return dateTime;
}
Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Colleen
Top achievements
Rank 1
answered on 17 Aug 2019, 07:28 PM
How do you do this functionality in Telerik's stand-alone Report Designer?  Thank you
0
Silviya
Telerik team
answered on 19 Aug 2019, 11:30 AM
Hello Colleen,

To use custom functions inside the Standalone Designer it needs to be extended - check Extending Report Designer help article for reference. The designer's folder is placed in default Telerik Reporting installation folder, e.g. C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Report Designer

Best Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
ankit
Top achievements
Rank 1
Answers by
Peter
Telerik team
Colleen
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or