How to convert decimal numbers to Hours and minutes

Hi,
I am using SSRS 2005. I want to convert decimal numbers to Hours and minutes.
Say suppose, I am adding daily work hours and minutes and the total is 208.63.
Here 208 hrs and 63 minutes. How to convert this to 209 hrs 03 minutes in SSRS.
Any In-built function is there? or how to do using custom code?
Appreciate your help.
Regards,
Bala

suppose if field name is TotalDailyHours you can do it as below
=CStr(Cint(Floor(val(Fields!TotalDailyHours.Value)) + ((val(Fields!TotalDailyHours.Value)-Floor(val(Fields!TotalDailyHours.Value)))*100)/60)) + ":" +
Right("00" +Cstr(Cint(((val(Fields!TotalDailyHours.Value)-Floor(val(Fields!TotalDailyHours.Value)))*100) Mod 60)),2)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Convert days into days, hours and minutes

    Hi,
    In my report there is a column "# of Days (Submitted to Completed)" and the result I am getting is like 2.4, 3.5, 1.8 etc. Client requirement is to convert 2.4 days into days, hours and minutes (2 days 9 hours 36 minutes)
    The value of "# of Days (Submitted to Completed)" is calculated during ETL.
    Can you please tell me how to achieve this result.
    Thanks

    Create a formula where you could use the CAST function and calculate for the remainder by multiplying 24 for hours and 60 for minutes.

  • How do I convert time from hours and minutes to decimal time

    I am making a spread sheet a work for payroll. I need to make a formula that converts the time from hours and minutes to decimal time. Please help

    Hi Taryn,
    I can't see much from the photo, but I assume your formula is similar to the one I've used below:
    The same formula is used in F4 and F6, and both return the same result (shown in F4).
    F4 was left on "automatic" cell format, and the column widened to accomodate the repeating decimal to the point where Numbers would begin displaying zeros.
    F6 was formatted as shown in the Cell Inspector to show only two decimal places.
    Neither of these is an "exact" decimal, as it is not possible to use a decimal fraction to "exactly" represent 1/6 (or 10/60).
    The likely reasons for yours showing a whole number of hours is a difference between your formula and the one shown in the example here, or a difference in the number of decimal places set in the cell's format.
    Regards,
    Barry
    PS: To take a screen shot:
    Place the mouse pointer at the top left corner of the area you want to nclude in the shot.
    Press shift-command-4.
    Use the mouse to drag a selection rectangle contining the part of the screen you want to include.
    Release the mouse button. (You'll hear the sound of a camera shutter 'snapping' the picture.)
    The screen shot will be saved to your desktop with the name 'screen shot' followed by the date and time.
    The image may be posted to the discussion using the same steps you used to post the photo above.
    B.

  • How to set just hour and minute to a Calendar object and do comparsion

    hi there
    can anyone show me how to just set the time : hour and minute to a calendar obj and do comparion? for instance, compare mid night with 7:24pm, how do i create objects to do it? thanks

    Or I'll just post them here to save the trouble...
        Calendar xmas = new GregorianCalendar(1998, Calendar.DECEMBER, 25);
        Calendar newyears = new GregorianCalendar(1999, Calendar.JANUARY, 1);
        // Determine which is earlier
        boolean b = xmas.after(newyears);            // false
        b = xmas.before(newyears);                   // true
        // Get difference in milliseconds
        long diffMillis = newyears.getTimeInMillis()-xmas.getTimeInMillis();
        // Get difference in seconds
        long diffSecs = diffMillis/(1000);           // 604800
        // Get difference in minutes
        long diffMins = diffMillis/(60*1000);        // 10080
        // Get difference in hours
        long diffHours = diffMillis/(60*60*1000);    // 168
        // Get difference in days
        long diffDays = diffMillis/(24*60*60*1000);  // 7

  • How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    Simon,
    you can use the duration function:
    B4=DURATION(0,0,B1/B2)
    you can further, format the cell as a duration like this using the cell inspector:

  • HT202314 how do I turn of blue hour and golden hour from showing in calendar days

    how do I turn off blue hour and golden hour from calendar days on macbook pro

    how do I turn off blue hour and golden hour from calendar days on macbook pro

  • How to find out exact labour hour and expenses for each labour attached to

    Team,
    How to find out exact labour hour and expenses for each labour attached to machine
    We are planning to go with CATS.
    But in Cats how Production Planning department get the exact labour coust
    (which includes labour accomodation building , EB etc. paying by comp)
    How to do this in CATS
    REX

    hai
    generally  the schemas are named X000  which stands for common schema  nomination
    x replaced by respective country like for india it is IN00  for US  U000etc
    it is not given according to the group of emplyees but according to the country grouping for your org units
    time schemas are country independent they work for all the countries
    regards
    nalla

  • How do you calculate difference in time (hours and minutes) between 2 two date/time fields?

    Have trouble creating formula using FormCalc that will calculate difference in time (hours and minutes) from a Start Date/Time field and End Date/Time field. 
    I am using to automatically calculate total time in hours and minutes only of an equipment outage based on a user entered start date and time and end date and time. 
    For example a user enters start date/time of an equipment outage as 14-Oct-12 08:12 AM and then enters an end date/time of the outage of 15-Oct-12 01:48 PM.  I need a return that automatically calculates total time in hours and minutes of the equipment outage.
    Thanks Chris

    Hi,
    In JavaScript you could do something like;
    var DateTimeRegex = /(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d)/;
    var d1 = DateTimeRegex.exec(DateTimeField1.rawValue);
    if (d1 !== null)
        var fromDate = new Date(d1[1], d1[2]-1, d1[3], d1[4], d1[5]);
    var d2 = DateTimeRegex.exec(DateTimeField2.rawValue);
    if (d2 !== null)
        var toDate = new Date(d2[1], d2[2]-1, d2[3], d2[4], d2[5]);
    const millisecondsPerMinute = 1000 * 60;
    const millisecondsPerHour = millisecondsPerMinute * 60;
    const millisecondsPerDay = millisecondsPerHour * 24;
    var interval = toDate.getTime() - fromDate.getTime();
    var days = Math.floor(interval / millisecondsPerDay );
    interval = interval - (days * millisecondsPerDay );
    var hours = Math.floor(interval / millisecondsPerHour );
    interval = interval - (hours * millisecondsPerHour );
    var minutes = Math.floor(interval / millisecondsPerMinute );
    console.println(days + " days, " + hours + " hours, " + minutes + " minutes");
    This assumes that the values in DateTimeField1 and DateTimeField2 are valid, which means the rawValue will be in a format like 2009-03-15T18:15
    Regards
    Bruce

  • How can I change the timer in the clock app to minutes and seconds instead of hours and minutes?

    Is it wishful thinking or a false memory? It seems like there used to be a way to change the timer function of the clock from hours and minutes to minutes and seconds. I feel like there's a magic tap or secret swipe that I discovered but have forgotten.  Am I totally delusional?

    We may have to wait for an update.  Aside from changing the country, I'm not sucre this can be done.  There is no Health App in the System preferences and no  way to modify from within the app.  Weird.
    If you go to Language & Region under general settings and choose any other country, you will get Metric.  I have the opposite problem.  I live in a Metric country and want my health app to be in lbs and inches which is what I am used to.

  • Hour and minut in table

    Hi!
    I'd like to display hour and minute (HH:mm) in my table, inserted like this Date d = new SimpleDateFormat("HH:mm").parse("14:04");,
    but it displays whole date like "Mon Jul 12 14:04:00 CET 2010". How can I make it to display my format?

    java.util.Date only contains only the number of milliseconds since midnight 1/1/1970 (the epoch). It contains no formatting information so once converted to a Date the format of the original is lost. java.util.Data has a toString() method which prints out in a standard Locale specific format. If you want any other format then use a SimpleDateFormat to create a String representation.
    P.S. I would never use a java.util.Date object to hold a time difference (other than a time relative to the epoch).

  • The time when the PI doc is counted ,I want see the hour and minutes ,

    HI  experts ,
    How can I find when the physical inventory doc had been created ,counted and posted , by hour and minutes ,    the date is not enough .
    Thanks in advance .

    we use MI31 for create Physical inventory doc.
    as a matter of fact ,  what I most want to know is when the count quantity is entered by hour and minutes , because the book quantity in the Physical inventory doc is extract from MBEW table when the count quantity is first entered.After that the book quantity never updated .  So it's necessary to konw the exact time when the count quantity is entered , then we can do the right analysis of physical inventory difference.

  • I/p field to accept hours and minute only

    Hi all,
    i need to know that if i want a field to accept only hours and minute in dialog programming. how do i proceed...
    Thanx in advance.
    it is urgent.

    Declare the field of type integer & define the width of the field

  • Total hours and minutes

    can't find the formula to add a column of hours and minutes
    any suggestion greatly appreciated
    thanks

    http://discussions.apple.com/thread.jspa?messageID=8746386
    Yvan KOENIG (from FRANCE mardi 3 mars 2009 21:14:23)

  • How to convert decimal notation to comma notation

    Hi Folks,
    I have an issue in converting decimal notation to comma notation for France.
    I have changed the decimal notation in SU01 from 123.4 to 123,4 but when i run some custom program written by me it is extracting output as 123.4 than 123,4.
    So i want to have the output of report to conver all numerical values(from decimal format to comma format) i.e., 123,4 format from the 123.4 format.
    Please help me in fixing this issue
    Edited by: Nishanth Kumar Reddy Chenchu on Apr 24, 2008 1:16 PM

    Hi Nishant,
    U can use the statement WRITE TO. This will write the data as per the user settings. When ever user changes his settings like decimal notations then this statement will write the data as per the current settings of the user.
    DATA: l_amount1 TYPE wrbtr VALUE '123.45',
              l_amount(16) TYPE c.
    WRITE:/1 l_amount1.
    WRITE l_amount1 TO l_amount.
    WRITE:/1 l_amount.
    Just copy paste above code in a sample program. First execute this program and note the output. Then change the user settings for decimal notations and log of from SAP(Because user settings will become active only after fresh login). Now execute ur report and see the difference. In this way u no need to change the program when ever user changes his settings.
    This thing not pnly applies for amount but also for date, time Quantity fields
    Thanks,
    Vinod

  • How to convert a file of emails and the attachments to pdf?

    In adobe pro XI, how do you convert a file of emails AND their attachments to pdf?

    Unfortunately, that did not work either. I am thinking this may not be possible (at least with 10.1.3.4). What I was hoping for was that I could audit the presentation catalog groups and users. I want to be able to get a list of all the users and the groups they are listed in. Again, this would be helpful so we do not need to keep an external record. If we are removing access to a user or updating the group, we want to make sure we remove them from all applicable groups (Settings>Administration>Manage Presentation Catalog Groups and Users)

Maybe you are looking for

  • Why does an unknown error occur when I try to save a document as a word file?

    why does an unknown error occur when I try to save a document as a Word file?

  • Java class integration with Oracle Identity Manager 9.1.0.2

    Hello Friends, I have a java class that is responsible for sending notifications, my question is how do the relationship of this class with the Oracle Identity Manager 9.1.0.2 so you can take the class and notify users when an application is approved

  • Smart Playlists and Radio

    It is to my understanding that there is some way to be able to create smart playlists with your own local radio stations on it. If this is possible can anyone clue me in on how? Thanks

  • Blur moving object in AE CS6

    Hi: I need to blur a moving object: - The effect is only needed at some point of the video, it must appear, and then disappear, not being on screen the whole time. - The object is moving, and changing shape, the blur must adapt to it. - I've been try

  • Main button wont work - any ideas!

    Hey, Does anyone know what might be wrong - all buttons work except the main one in the middle which means I cant do anything!!!! Thanks