Can you provide some more detail on what you are trying to do? Such as the source of the numerals, how you atrying to display them, etc.
example from Free Calendars Selected Year:[ 3008] Month:[ 04] Date:[ 12] Weekday:[ Wednesday] Total days since 0001/01/01: [1098409] Any easy way to make [1098409] become [1,098,409] ? If a big number can have "," then it will be more easy to read. Thanks
Use the following: String.Format("{0:#,###}", INPUTTEXT) to format your output with ","s. Here is a working example to help you integtrate with your page: <script language="C#" runat="server"> void Page_Load(Object sender, EventArgs e) { int totalDays = 1098307; lbltotalDays.Text = String.Format("{0:#,###}", totalDays); } </script> <head> </head> <html> <body> Total days since 0001/01/01: <asp:label id="lbltotalDays" runat="server" /> </body> </html>
Thanks Jhar, Your script language="C#" and aspx is working yet how do I save the result "1,098,307" to DB table?