Click here to Skip to main content
Licence CPOL
First Posted 13 Jan 2008
Views 15,013
Downloads 106
Bookmarked 6 times

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

By | 13 Jan 2008 | Article
This Control can change the Georgian dates in Dataset to Shamsi date (For Report)

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

Team Leader
Real System
Iran (Islamic Republic Of) Iran (Islamic Republic Of)

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
* ...

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalhelp Pinmemberhamidreza azarm3:07 16 Apr '08  
Generalshare knowledge not dll Pinmembersmall_programmer20:06 22 Jan '08  
GeneralNeed source Pinmemberkianoosh soorani19:01 13 Jan '08  
Can you send source to my email?
AnswerRe: Need source PinmemberSirAsad4:03 14 Jan '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120529.1 | Last Updated 13 Jan 2008
Article Copyright 2008 by SirAsad
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid