Click here to Skip to main content
15,884,298 members
Articles / Web Development / ASP.NET
Article

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

Rate me:
Please Sign up or sign in to vote.
3.12/5 (8 votes)
13 Jan 2008CPOL 34K   250   8   5
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#

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

C#
/// 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)


Written By
Team Leader Real System
Iran (Islamic Republic of) Iran (Islamic Republic of)
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
* ...

Comments and Discussions

 
QuestionMiladi To Shamsi with Persian Calendar Pin
Member 802413228-Nov-12 0:45
Member 802413228-Nov-12 0:45 
Generalhelp Pin
hamidreza azarm16-Apr-08 3:07
hamidreza azarm16-Apr-08 3:07 
Generalshare knowledge not dll Pin
small_programmer22-Jan-08 20:06
small_programmer22-Jan-08 20:06 
GeneralNeed source Pin
majid soorani13-Jan-08 19:01
majid soorani13-Jan-08 19:01 
AnswerRe: Need source Pin
SirAsad14-Jan-08 4:03
SirAsad14-Jan-08 4:03 

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

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