TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
elham deljooei
NA
84
73.1k
How to convert PearsiandCalender to GregorianCalendar?
Oct 24 2013 4:07 AM
Hi friends,
I want to convert PersianCalendar to GregorianCalendar. This is my code but It couldn't work truly.
GregorianCalendar gCalender = new GregorianCalendar();
string gcal =Convert.ToString( gCalender.GetYear(birthDate)+ "/"+ gCalender.GetMonth(birthDate)+ "/" + gCalender.GetDayOfMonth(birthDate));
Console.WriteLine(gcal);
But i can convert
GregorianCalendar to PersianCalendar. Like this:
onsole.WriteLine("Gregorian date change to Persian date");
PersianCalendar pCalender = new PersianCalendar();
string pcal = pCalender.GetYear(birthDate).ToString("0000") + "/" + pCalender.GetMonth(birthDate).ToString("00") + "/" + pCalender.GetDayOfMonth(birthDate).ToString("00");
Console.WriteLine(pcal);
Reply
Answers (
6
)
Response.Redirect in User Control
dynamic data in gridview in asp.net 4.0