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?
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.
Hello,
I'm working with an HTML table, that contains numbers (formated) and when I export this to xls file (just change extension... hehe) I loss some of the formated data.
Example:
in html I have " 1,000.00 | 500.00 | 20.00 "
and in excel it shows like:
"1,000.00 | 500 | 20"
I want it to know if it is possible to show the very same format as in html.
THankyou :P
NSLog function accepts printf formatspecifiers.
My question is about %x specifier.
Does this print hex codes as sequence on memory? Or does it have it's own printing sequence style?
unsigned int a = 0x000000FF;
NSLog(@"%x", a);
Results of above code on little or big endian processors are equal or different?
And how about NSString's -initWithFormat method? Does it follows this rule equally?
Question: The new SQL Server 2008 database returns me values formatted English (date/float).
Is there a way I can set the return format ?
For example temporarely switching the database language?
Or just set the language for the current query ?
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.
Hi there,
I have a date format like this :
$date1 = "Sun May 09 20:07:50 +0000 2010";
and I have to convert it to: 09-05-2010
I am using date("d-m-Y", $date1));
When I print this individually it gives proper result but I am using it in loop
it gives me results like: 31-12-1969
I don't understand why this is so?
Can you help, please?
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).
How can I setup some format for cells in some column in my DataTable or GridView ?
I need to make some double columns rounded , for example :
3.564643 - 3.56
3.546723 - 3.55
6.654644 - 6.65
thank you.
hi,
I've to make a code to upload/download a file on remote machine. But when i upload the file new line is not saved as well as it automatically inserts some binary characters. Also I'm not able to save the file in its actual format, I've to save it as "filename.ser". I'm using serialization-deserialization concept of java.
Thanks in advance.
Can i change the format of the output result which is returned when i call the variable name in FSI windows?
I overrided the ToString() funcion in my object, but it does not affect the output results in FSI.
My page contains images and labels which are bound to a datalist.
The label gets the text from a stored procedure. I need to align it in the following format.
IMAGE Label( The text starts right to the image and continues..
below the image when it is too lengthy..)
I'm currently using statement-based replication. After upgrading to MySql 5.1, I'm considering using row-based replication.
After reading the docs it seems that you can change the format of the master on the fly.
Will the slave automatically adapt to whatever type of binary log it is sent?
Do I have to make any changes to the slave or master to get ready for switching or can I simply modify the binlog_format variable on the master?
I am creating a document database which business people will be able to easily send documents to. Which file format do you think is the most understandable and easy to write by business / non-technical people?
My current contenders are XML, JSON, and YAML
hello.
my m file is:
x=0:0.01:2*pi;
y=sin(x);
plot(x,y)
I want build this program by .exe format.
i want run this .exe in a computer that dosen't has matlab.
can you help me?
When you try to set the userPassword attribute by using an LDAP Data Interchange Format (LDIF) file, you receive an error message that is similar to the following:
Add error on line 34: Unwilling To Perform
How to reslove this ?
I have a model which is referenced to a table registries extending Zend_Db and some methods which bascially uses fetchAll() all the time.
What happens is: my table has a DATE field and I'd like it to output already formated when I call $row-reg_date. Is it possible by doing something in the model or do I have to manually format?
Is there a way to format a gridview column footer value as currency. I'v set the DataFormatString of the BoundField to {0:c} but this doesn't seem to affect the footer. Do I have to do it in the RowDataBound event?
Hi,
I am developing a list of buttons for a puzzle game where i want to place images on these buttons with good texture on it like what we see just like in twitter format.is it possible to do this? if so how?
Thanks,
I am trying to convert a string into datetime with the following C# code,
DateTime dTo = DateTime.ParseExact(dateTo, "mm/dd/yyyy", CultureInfo.InvariantCulture);
eachtime I pass dateTo as 1/1/2010 it fails, instead it needs the string to be 01/01/2010.
What string format should I use to support both 01/01/2010 and 1/1/2010?
I am not able to format/align the javascript code using ctrl+K+D in vs 2008. Am i missing some setting?
PLease let me know what should i do inorder to make this happen.
Hi,
I am planning to make an iPhone search app. the user types in the search string. the string will be searched by some search engines like Google, Live, Yahoo ...
I need to get the search result in the XML format. Is there any way to do this. Help needed. Please.
Thanks and regards,
Shibin
So I have defined variables in such a way in my file:
public static final String hello_world = "hello world"
public static final String awesome_world = "awesome world"
public static final String bye_world= "bye world"
I have many declarations like that.
Is it possible to format them as(All '=' in a line):
public static final String hello_world = "hello world"
public static final String awesome_world = "awesome world"
public static final String bye_world = "bye world"
I can't even think of a way to do it. Any kind of help is appreciated.
P.S If it matters, I use sublime text 2.
I have a string with this value:
2010-05-13 23:17:29
I'd like to format it and am using the following code:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateStyle = NSDateFormatterMediumStyle;
NSDate *formattedDate = [formatter dateFromString:dateString];
[formatter release];
When the debugger reaches the release line, formattedDate shows "invalid CFStringRef" and
Cannot access memory at address 0x0
Any ideas what I'm doing wrong?
I have a file format plugin and everytime I attempt to write to the file in DoWriteStart, the callouts fail.
The Photoshop API is using the windows WriteFile callout which is returning a 0 value. when an attempt to write to the file is made