Click here to Skip to main content
6,630,586 members and growing! (18,254 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » .NET Framework » Utilities     Beginner License: The Code Project Open License (CPOL)

Change Over All Georgian(Miladi) Dates that Exist in Dataset to Shamsi Date

By SirAsad

This Control can change the Georgian dates in Dataset to Shamsi date (For Report)
C# (C# 1.0, C# 2.0, C# 3.0), VB (VB 7.x, VB 8.0, VB 9.0), .NET (.NET 1.0, .NET 1.1, .NET 2.0), Win2K, WinXP, Win2003, Vista, TabletPC, ASP.NET, Visual Studio (VS.NET2003, VS2005)
Posted:13 Jan 2008
Updated:13 Jan 2008
Views:8,345
Bookmarked:2 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
7 votes for this article.
Popularity: 2.54 Rating: 3.00 out of 5
3 votes, 42.9%
1

2

3

4
4 votes, 57.1%
5

Introduction

In this article, we solve the date problem in Dataset. A user sends the dataset to his report, and she or he cannot convert the existing dates in dataset. We solved this problem for developers. You can use our component to change over all the Georgian dates to the Shamsi date.

How to Use

After downloading our component, add this to your project references.

Define an instance of Component:

C#

   /// Define New Dataset : dates of this dataset will change.
   DataSet ds = new DataSet(); 
     
   /// Define New Instance of Component 
   DateBulkConvertor.Convertor MyConvert = new DateBulkConvertor.Convertor();
 
   ///set Your DataSet to our dataset for change 
   MyConvert.MyDataset = ds;    
    
   ///Define a Dataset : this dataset is for retrieving the result 

   DataSet mydataset = new DataSet();    
   
   /// Change Dates and Return Result to Dataset
   mydataset = myconvert.changeDates(); 

Retrieve Types

/// Result is Short type : Ex . 1386/10/10 
myconvert.ModifyDate = DateBulkConvertor.dtTypes.ShortDate;

/// Result is Long type : Ex . 1386/10/10 20:30
myconvert.ModifyDate = DateBulkConvertor.dtTypes.LongDate;

Good luck!

History

  • 13th January, 2008: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

SirAsad


Member
I'm Software And Web Devloper , And i'm Team leader too And I have collaborate in System Analyze with Analyst.

My profession:

* C#.net (For Desktop And Web Applications)
* Java (Enterprise veriosn J2EE)
* Wml (Wap Based Page Design)
* DBA
* Organization or Group senior
* Asp.net
* Asp Classic
* Web Client Side languages like. javaScript , Html ,...
* ...

My Research:

* Web finial Technology
* Design Embed systems And Smart Cards
* Artificial Intelligence
* ...
Occupation: Team Leader
Company: Real System
Location: Iran, Islamic Republic Of Iran, Islamic Republic Of

Other popular .NET Framework articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 4 of 4 (Total in Forum: 4) (Refresh)FirstPrevNext
Generalhelp Pinmemberhamidreza azarm4:07 16 Apr '08  
Generalshare knowledge not dll Pinmembersmall_programmer21:06 22 Jan '08  
GeneralNeed source Pinmemberkianoosh soorani20:01 13 Jan '08  
AnswerRe: Need source PinmemberSirAsad5:03 14 Jan '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 13 Jan 2008
Editor: Deeksha Shenoy
Copyright 2008 by SirAsad
Everything else Copyright © CodeProject, 1999-2009
Web11 | Advertise on the Code Project