I want to convert an int to a string but if it is a single digit I want to add a leading 0
Is that one of the built in format options? or do I have to do it manually?
I am looking for documentation of the ithmb format used by Apple for photos stored on an Apple iPod. I would be happy with source code or a description. The only "documentation" I can find is pre-compiled executables that crack out the JPEGs.
Does anyone know how to do this?
I have some text files previously formatted in vim using "gggqG". Now I need to convert them to one line per paragraph format. I saw a way(using :g command) to do that before, but I have forgot it. Anyone knows?
Hi,
I am trying to accomplish the task of
Making a Wed request
-getting result in JSON format
-Parsing the result
- and finally display the result in a table....
Any help regarding any of the task is welcome....
Hi,
I have an ajax calendar control that I specified the date format to be yyyy-MM-dd. Is it possible to have the comparevalidator validate that type of date sepcifically and have it fail for everything else? right now it seems to only take dd-MM-yyyy.
Thanks.
Hi,
I have an application build on my x64 computer. It is now build for x86 but on windows XP machines (x86) it fails with the "bad image format". On all Vista and up OS, it runs perfectly on x64 platfomrms. I tracked the problem to my icon.
I removed the icon and now it runs fine, anyone got an idea of how on earth this could relate to anything?
Hey guys,
I have a load of signatures I wish to compare (all in ISF - ink serialized format).
Does anyone know how to compare these signatures?
Thanks in advance
Is there any equivalent of the VS7/8/9/10 Edit - Advanced - Format Document (Ctrl+K,Ctrl+D) function in the Visual Basic 6 IDE?
I've inherited an old codebase and it is messy in places so I'd like to tidy it up.
Is there any equivalent of the VS7/8/9/10 Edit - Advanced - Format Document (Ctrl+K,Ctrl+D) function in Visual Studio 6 (specifically VB6)?
I've inherited an old codebase and it is messy in places so I'd like to tidy it up.
Hi, I would like to ask for a recommendation on offline form format which user can bring around. Once done, they will upload the file to the server and data will be extracted from there.
We are currently looking at Word and Excel 2003 since all users have it on their machine but it seems that using interops on server is something to avoid.
Suggestions?
I'm trying to mash all my changes since I last pushed to the svn server into one big patch that I can email to my coworker for review. Can I do this with git format-patch ?
Is there any tag in the Struts 1 tag library which can format a java.util.Date object?
In Struts 2, I can use the s:date tag, but I can't find the Struts 1 equivalent.
I found this resource when looking to commonly format user's phone numbers.... http://www.eyesis.ca/projects/formatphone.html
I was wondering if someone else might have a better solution.
I have 2 integer fields that represent dates in the YYYYMMDD format. What is the best way to subtract 2 of these fields to get the correct # of days between them?
For instance, if I take the difference between 20100511 and 20100428 I would like the result to be 13 and not 83. I know I need to convert the integer fields into date formats but everything I have tried either throws an exception or doesn't work correctly.
What am I missing? Answers in vb.net please
I want to create a XML file in csharp like the below format pls help me with the code
<MasterEntries>
<fruit>Apple</fruit>
<animal>Fox</animal>
<color>Violet</color>
</MasterEntries>
Hi,
I am developing an application in that i have used DatePicker to pick the date but it gives me date with time .I have converted that format into string, now i just want date from that. How should i do that.Plz suggest me something.
Following is my code Snippet.
NSDate *selected =[datePicker date];
NSString *dateString = [NSString stringWithFormat:@"%@", selected];
here date picker is object of UIDatePicker.
hi
here
string strScore="2"; or
string strScore="2.45656"
now here i am checking the condition if it is
double value = double.Parse(strScore);
strScore = value.ToString("##.##");
2.45656 like this then i am showing the output as
2.45
if the input is
string strScore="2";
then the ouput is shown as "2"
but now i need to show the output has 2.00
how can i format the code like this based on the condition
t = Time.now
d = 10.minutes.from_now
Using these two variables, how do I output a timer like 00:10:00?
As d counts down, the timer would show 00:09:59, 00:09:58, etc.
Note: I'd formatting uses Rails datetime format method somehow.
I have an object with a couple of DateTime properties:
public DateTime Start_Date { get; set; }
public DateTime? End_Date { get; set; }
I would like to set a format for each of these, along the lines of
Start_Date.ToString("M/d/yyyy hh:mm tt")
Do I have to code the get, or is there an elegant way to do this?
Hi i am using the vimeo API and i want to convert the string to a short date formate {0:d} or {0:dd/mm/yyyy}.
This is my code but doesnt seem to be working for me.
select new VimeoVideo
{
Date = String.Format("{0:d}",(item.Element("upload_date").Value)),
};
return Vids.ToList();
}
public class VimeoVideo
{
public string Date { get; set; }
}
Any help would be much appreciated
Thanks
I want to format the date on the x-axis of my cfchart as mm/yyyy as opposed to the full datetime value that is returned from sql server (yyyy-mm-dd hh:mm:ss).
How do I do this?
We have an application written in VB.NET 2003 which has built in Crystal reports. When we install the application on Windows 2008 server
we get the following error while trying to open crystal report in excel format
Error is : Error in File :"....rpt" Error detected by export DLL.
The report opens up fine in PDF on server
Opeing report in Excel works fine on my local(development) machine...But this error is thrown on server...
Kindly help me resolve this issue and how to fix it?..
hi,
In my application i write the code like this
byte [] byt=new byte[ Convert.ToSbyte(textbox1.tex)];
it is giving the error that input string was not in a correct format.
How do I set global configuration for RSpec in Ubuntu.
Specifically so, --color and --format specdoc stay turned on, across all my projects (ie every time I run rspec anywhere).