format

In SSRS what is the correct way to change a date from the standard "d" offered in the properties to a custom one?

I have a date as shown in expression: = Fields!last_sales_date.Value will show: 04/16/2010 Applying standard date properties allows only a few ways to display this date. I don't want to use the system dates supplied. What is the correct way to customize the display format to the following: Want to show: 4/16/10 Using VS 2003 ...

Does the Dalvik file format (*.dx) support more instructions than a Java .class file?

Is there anything the Dalvik VM supports (in terms of bytecode) which is not used currently because the .class files don't have it? As an example, if people would write their own Source-to-DX converter for their functional language XYZ, would they be able to implement e. g. full tail calls although the .class file does support tail call...

Remove all styles from dynamic label in asp.net

I have a label and I got some text from database. text format like: Windows Server 2008 ...etc But sometimes there are different fonts or something like style. How can I remove all of them quickly? I know I can make it with replace command. But is there any quick way for it? ...

PHP - Convert to date format dd/mm/yyyy

Hi there! I have the following date: 2010-04-19 18:31:27. I would like to convert this date to the dd/mm/yyyy format. Can anyone give me some help? Thanks in advance for the help, Best regards! ...

PHP - why is this date function not erroring out

function convertDT($TS) { $TS = strtotime($TS); $TS -= date("Z"); $newTS = date("Y-m-d\TH:i:s\Z", $TS); return $newTS; } echo "Good: ".convertDT('2010-04-20 01:23:45')."\n"; echo "Bad: ".convertDT('2010-31-20 01:23:45')."\n"; The second date returns: 1969-12-31T23:00:00Z Why? Should this error? ...

How to format a money value from an ISOCurrencySymbol in C#

I have created a Money class to save money values in different currencies. The class uses 3 letter ISO symbols to store currency types: public class Money { public decimal Amount { get; set; } public string Currency { get; set; } } Is there a way in C# to use this information, say 100.00 USD, and format it as "$100.00"? Only w...

How can I convert a timestamp to a user-friendly time string

I want to be able to present "today" and "yesterday" for recent dates in my application. I've got a date formatter in use currently to show dates (retrieved from data records) and will keep using this for anything more than a couple of days old. I just really like the way the SMS app in the iPhone shows dates for recent messages and woul...

how do you format this date type in javascript

how do you format a date into the format 30-Apr-10 in javascript? ...

Android - phone number contact format

Hi In Android I can get phone numbers of all the contacts without any problem. Tha problem is that for most users some numbers are stored as 'local' numbers, meaning that they dont have the country code included. For example, if the user lives in US and he has 2 contacts: 1) John - 555-123-1234 (local) (starting 1 not showing) 2) ...

How do I write escape characters verbatim (without escaping) using StreamWriter?

I'm writing a utility that takes in a .resx file and creates a javascript object containing properties for all the name/value pairs in the .resx file. This is all well and good, until one of the values in the .resx is This dealer accepts electronic orders. /r/nClick to order {0} from this dealer. I'm adding the name/value pairs to t...

How do I create a type of compression that my software can read / write? My software only.

I am working on a project that requires programmatically distributing a compressed file that in a format that is associated with my software. I am writing the software in Python. I would use .zip, but I don't want to overwrite any previouse filetype associations. ( with zip utilities ) ...

Java JEditorPane Format

im trying to implement a Chat feature in my application. i have used 2 JEditorPane. one for holding chat history and the other for sending chat to the previous JEditorPane. the JEditorPane is text/html type. the problem i am having is when i put more than one space between characters it is automatically removed by the parser because it...

Why is the proper "respond_to" format not getting called?

Hi All, I'm having a bit of an odd issue. Really too odd to type out, but here goes. Basically I have a controller that refuses to "respond_to" using javascript unless I assign my "chart.generate_xml" to a variable before the "respond_to" block like so: @xml = @chart.generate_xml(@begin_date,@end_date,1.hour) respond_to do |forma...

File Format Conversion to TIFF. Some issues???

I'm having a proprietary image format SNG( a proprietary format) which is having a countinous array of Image data along with Image meta information in seperate HDR file. Now I need to convert this SNG format to a Standard TIFF 6.0 Format. So I studied the TIFF format i.e. about its Header, Image File Directories( IFD's) and Stripped Ima...

How to recreate the SVN 'format' file in a Repository?

We have been happily creating automated FAULTY backups of SVN repositories!! It turns out that we were not backing up the file 'format' in each of the repositories. Is there a way of recreating the file (and hence our repository and history) I think (hope!) that this is the only file missing. TIA Ivan Vernot ...

I am converting general date to UniversalTime Please tell me how to get this format

i am converting my date to Universal Time using mydate.ToUniversalTime() in vb.net its giving me right time but its giving me time in "5/4/2010 4:30:00 AM" format (in vb.net) but i want it in "Wed, 05 May 2010 05:50:00 GMT" format.. please help me to make it in "Wed, 05 May 2010 05:50:00 GMT" format. value of both date are different so p...

Date from String using NSDateFormatter regardless 12h-24h setting

Hello everybody, Today my question is about date formats and strings. My application downloads some strings representing dates from the internet. The date format is always like this: "2010-05-24 at 20:45" I need to convert this string into an NSDate object in order to perform some date manipulations. I tried this code: NSString * dateSt...

Not enough arguments for format string

Hello, I have such code in Python: def send_start(self, player): for p in self.players: player["socket"].send_cmd('<player id="%s" name="%s" you="%s" avatar="*.png" bank="%s" />'%(self.players.index(p)+1, p['name'], int(player["pid"]==p["pid"]), 0)) player["socket"].send_cmd('<game playerid="%s" />'%(self.turnnow)) p...

What do the square brackets in LaTeX logs mean?

I'm currently working on a parser that reads complete LaTeX logs. Most of the log format is, though weird, easy to figure out, but these square brackets are puzzling me. Here's an example from near the end of one of my logs: Overfull \hbox (10.88788pt too wide) in paragraph at lines 40--40 []$[]$ [] [102]) [103] Kapitel 14. (./Thermo...

How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net)

How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net) For example: I use input string "30/12/1999" (30 December 1999), how to (try)parse it to DateTime? ...