IT Community - Software Programming, Web Development and Technical Support

Currency format

This is a discussion on Currency format within the ASP and ASP.NET Programming forums, part of the Web Development category; While saving the values in the SQL in the currency datatype, the value is stored with a period(dot). Example : ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-12-2008, 10:05 PM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Question Currency format

While saving the values in the SQL in the currency datatype, the value is stored with a period(dot).

Example :

If we store 100000 in the DB, then it will be stored as 100.000

How can we format it as 100,000. And how can we add comma for every three digit as 100,000,000 ?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-13-2008, 12:32 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Currency format

Hi,
U can use money datatype for column in DB.
Then u can store the values as 10000.00
If u want to insert comma after every three numbers.do it using script or in code-behind and then store it in DB..While storing 100,000.00 like this in DB, u should have datatype as varchar..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-13-2008, 03:26 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Smile Re: Currency format

Thank you for your timely help madam.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded Currency Conversion Alkazar HTML, CSS and Javascript Coding Techniques 1 08-27-2007 07:57 AM
How to Create an Excel Macro that converts currency in numbers into words? itbarota VB.NET Programming 2 08-08-2007 06:23 AM
How can you convert them to another format? devarajan.v PHP Programming 1 07-26-2007 10:33 AM
How to Create word Macro that converts currency in numbers into words? itbarota VB.NET Programming 1 07-25-2007 04:03 AM
Better Image Format Joe Web Design Help 12 03-06-2007 11:31 PM


All times are GMT -7. The time now is 06:49 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0