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  
Old 03-12-2008, 09: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
  #2  
Old 03-12-2008, 11:32 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 188
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  
Old 03-13-2008, 02: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 Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 02:52 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0