Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2007, 03:23 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bishnupokhrel Send a message via Yahoo to bishnupokhrel
Default how to format data on dataset

Hi All,

I have following function.

public Dataset getdataset(string strSQLStatement,string ConnectionString, string dateFormat)
{
  DataSet ds;
   SqlDataAdapter oDA ;
   oDA = new SqlDataAdapter(strSQLStatement,ConnectionString);
    oDA.Fill(ds);
    // perform date/time/number formatting
  return ds;

}

Is there any operation? by which data on dataset will be formatted as the format mentioned by user, like date fields gets formatted to
dd-mm-yyyy, no matter how it is saved on server.

thx in advance.



Regards
Bishnu Pokharel
bishnu.pokharel@gmail.com
http://www.bishnupokharel.com.np/
__________________
Regards
Bishnu Pokharel
bishnu.pokharel@gmail.com
http://www.bishnupokharel.com.np/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting data in a DataSet pbyrum ADO.NET 5 May 18th, 2006 05:11 PM
DataSet data busybee ASP.NET 1.0 and 1.1 Basics 0 April 3rd, 2006 05:55 AM
save dataset in txt format??? thomaz C# 3 March 20th, 2006 01:29 PM
Data from dataset bubljo ADO.NET 3 October 26th, 2004 08:02 AM
Dataset Contains Data? ashley_y VB.NET 4 January 29th, 2004 02:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.