Convert Number To Time?
Sep 23, 2011I have to take a number value being entered into a text box and convert this to minutes and seconds and display the result in a label as xx min, yy sec. I know I need to use Mod in the process.
View 11 RepliesI have to take a number value being entered into a text box and convert this to minutes and seconds and display the result in a label as xx min, yy sec. I know I need to use Mod in the process.
View 11 RepliesI want to convert e.g. 21/06/2009 15:30:00 to seconds or a decimal number. Just like PHP, which uses a reference date (01JAN1970)
View 4 RepliesI have an ASP.NET application with a SQL Server back end. I am storing all my dates in UTC format and doing the appropriate conversions to the local time zone of the browser viewing it. One of the pages asks for a start date and end date (no times).
I am taking the start date and setting the time to 00:00:00 hours (midnight) and I'm taking the End time and adding a time of 23:59:59, so that the date range covers the whole day. Now what I'm trying to do is do a SQL query to do a search for records in this date range. The problem is, the data in SQL is in UTC time and the user is typing their dates and times in their local date and times. My quickest solution was to convert the date and time to UTC, then search the records. However, by doing this, I am to believe ASP.NET converts the given time and date to UTC based on the server time zone. How can I convert a date and time to UTC time based on the time zone of the user?
I want to convert numbers from 0 to 15 like that
[Code]...
Problem is that when we convert 2 to binary number it gives only 10 in binary, but i want to convert 2 to 4 bit binary number 0010.
In VB if you prompt the user for a number between 1-20, then a word, how do you get a text box to show the word the same number of time as the number selected using loops?... Ex: please select a number: 4 / select a word: cat....the text box should display ::: catcatcatcat ........
I am doing this for a class and my brain has locked up. Prob. just over thinking it though. Thanks in advance for any help!
converting the number of frames (in a video) to a number/time format. For instance, say a video has 110,212 frames at 23.976 fps, it works out to 01:16:36 (hh:mm:ss) with 18 frames remaining. I would like to format the result in a Textbox like the following:
[Code]...
I created a listbox using VB.NET. When the user select an item (it is a string format) in the listbox and click on a button, there will be a number beside the string and the number will increment which time the button is clicked. Anyone know how to do it...?Below is the coding I'd done, but I don't know how to do the increment part. Anyone know what coding I need to add?
Dim no As Integer = 0
listBox.Items.Add(listBox.SelectedItem & no)
Just getting started in VB.NET. I would like to add X-number of text boxes at run time. And then be able to address them by their index or some sequential numerical value (like an array)
This is what I have so far:
CODE:
When I turn this into a loop to create multiple toolboxes, how do I assign a name to the controls, or will all of them be named "MyTextBox" ? I'll increment their position so thats no problem.
I am trying to create what I am sure is a simple program to add hours to convert UTC time. I want to type in a UTC time and have it convert for every state in Australia. [Code] Now that works fine however when the conversion goes past "midnight" it then shows the date and time. I have tried about 50 different things but cannot get it to remove the date when the converted time passes midnight. [Code] The string was not recognized as a valid DateTime. There is an unknown word starting at index 18.
View 8 Repliesim having trouble understanding this question for a homework assignment. I need to write the PSEUDOCODE for the following scenario, but i got no idea about how to convert a hexadecimal number to a decimal number..You are required to input a two digit hexadecimal number eg. 3f (digits can be entered separately) and calculate the equivalent decimal number. (note the decimal number will be between 0 and 255) . output the decimal number
View 1 RepliesI heard that you have to add some code to a random number generator
results(1) = Int((5 - 1 + 1) * Rnd() + 1)
so that if it is used again and again it keeps generating new numbers as apposed to what this piece of code does by itself which is creates the same number every time.what is the code?
i got hex number from scale weight example:"90 00 00 01 34 = 180 kg" or "90 00 03 03 7c=49670 kg"how to convert hex to number(integer)
View 8 RepliesHere's The Time Now: 21:43 How can i convert it to GMT ??? Isn't there a default vb.net command like:
Dim Time As Time = New Time(21, 43, 0)
Time.ConvertToGMT
I am supposed to create a program that converts a number into the date that the number represents. its has to list today's date the date the number represents and the difference between that date and today 0 represents December 31st 1899
View 2 RepliesI am trying to convert a number so that it has commas in it. If the number is 1234 it should be 1,234 or if its 1000000000 it will be 1,000,000,000.
View 1 RepliesI want Convert a number to string![code]...
View 6 RepliesHow to convert a whole number into decimal..For example 70 to .70 because there are some price in my system that needed to be calculated by grams for example $5 per grams... I am saving the price in my database as an integer..
View 2 RepliesI realize this might be a redundant post, but I can't seem to find (through all the searches) the code to do what I need to do...or it's just not working for me.
I have an Intel hex file (containing ASCII characters) such as :041400000262F5226D
I need to convert the values to hex numbers into memory (an array), such as
[code...]
I'm not sure of the proper combination of conversions I need to get this accomplished. I've tried several combinations of Val/Asc/ etc. but can't get it correct.
I have a problem using FJ Core to convert image into byte.
I have a code written in C# which works fine.
The problem is when im running it in VB i get the exception: Arithmetic operation resulted in an overflow
It works fine in C# to convert a negative number into byte For Ex. (byte)-90024 = 88
But when i try to do it in VB i get the exception.[code]...
Anyone knows how to convert Number into Word using VB .Net : Like this example.. (sample: 150 = One Hundred Fifty )
View 3 RepliesI need to convert a number to string.[code]...
View 26 RepliesHow to convert the 5-digit number into a word using visual basic express edition
View 2 RepliesI am trying to convert an SMS to double. I'm creating a monitoring system where values like "45.2" are sent to another modem.
I would like to convert 45.2 (which I think is string initially and placed in a textbox) to double so I can do comparison upon receiving it.[code]...
First the CINT etc commands will not work for this.
I have the following value 2A000000412DF21B in string displayed here as hex. It should convert to 3026418950686503451 but instead I'm gettting 3026418950686503424.[code]...
how to convert text to a number.
So user in put one hundred and it will output to 100.
i want to know perfect convert all number to values like two to 2 two thousand to 2000
View 3 Repliesi work with scale weight(tec1600).I get weight in 5byte ----> 98 00 00 00 00 = 0 weighthow i convert hex to number or string?
View 2 RepliesI am using Visual Studio 2008 professional edition . i really do not know of what will be the codes that i am going to input. by the way this is the scenario: on Textbox is a number then label should be the in words of the number from the textbox. for example : (textbox) 1500.05 = (Label) One Thousand Five Hundred Pesos and Five Centavos.
View 2 RepliesI'm analyzing several log files obtained by drive test. I need of an information called "Cell information" and I extract it using analyzer tool. Issue is that this tool extracts this information in DWORD 11214032. So I need to use calculator to convert it to WORD. See image: and after conversion:So I want to convert 11214032 to 7376 number that identifies my cellid. I must repeat this operation for all informations (around 30)
Can someone know how to convert number 11214032?
how I can convert date time from dd/mm/yyyy HH:MM:SS to this format 19900101000000.000000+**** as used by WMI? I'm trying to set a schedule for an advertisement in ConfigMgr 2007 using vb.net.
View 3 Replies