473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

converting hebrew to gregorian date

i am using this code:
http://weblogs.asp.net/rosherove/arc...13/228688.aspx
i am passing for example 10/03/1975
and i get the hebrew date : "כ"ז אדר תשל"ה"
now i want to do the opposite direction which means to give the hebrew date
andget the gregorian date - how can i do that?
thnaks in advance
peleg
May 15 '07 #1
2 3932
Pelegk1,

I do not think it is possible to convert the actual Hebrew string "?"? ???
???"?" to a date. You would need the integral representation of the date,
something parsable by the DateTime type.

If you have the date in this format, try using the opposite of what you have
already:

Dim jewishCulture As CultureInfo =
CultureInfo.CreateSpecificCulture("he-IL")
jewishCulture.DateTimeFormat.Calendar = New HebrewCalendar
Dim dt As DateTime = DateTime.Parse(<date time here>,
jewishCulture.DateTimeFormat)

Hope this helps,
Steve

"pelegk1" <pe*****@discussions.microsoft.comwrote in message
news:72**********************************@microsof t.com...
>i am using this code:
http://weblogs.asp.net/rosherove/arc...13/228688.aspx
i am passing for example 10/03/1975
and i get the hebrew date : "?"? ??? ???"?"
now i want to do the opposite direction which means to give the hebrew
date
andget the gregorian date - how can i do that?
thnaks in advance
peleg

Jun 4 '07 #2
well it is possible!!
i found the way and i will submit the code here later

"PlatinumBay" wrote:
Pelegk1,

I do not think it is possible to convert the actual Hebrew string "?"? ???
???"?" to a date. You would need the integral representation of the date,
something parsable by the DateTime type.

If you have the date in this format, try using the opposite of what you have
already:

Dim jewishCulture As CultureInfo =
CultureInfo.CreateSpecificCulture("he-IL")
jewishCulture.DateTimeFormat.Calendar = New HebrewCalendar
Dim dt As DateTime = DateTime.Parse(<date time here>,
jewishCulture.DateTimeFormat)

Hope this helps,
Steve

"pelegk1" <pe*****@discussions.microsoft.comwrote in message
news:72**********************************@microsof t.com...
i am using this code:
http://weblogs.asp.net/rosherove/arc...13/228688.aspx
i am passing for example 10/03/1975
and i get the hebrew date : "?"? ??? ???"?"
now i want to do the opposite direction which means to give the hebrew
date
andget the gregorian date - how can i do that?
thnaks in advance
peleg


Jun 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Laurence Neville | last post by:
This is regarding a change in the Short Date format under Hebrew Regional Settings, that has caused huge problems in our ASP web application. The change appears to have been introduced sometime...
6
by: Jim Davis | last post by:
Before I reinvent the wheel I thought I'd ask: anybody got a code snippet that will convert the common ISO8601 date formats to a JS date? By "common" I mean at the least ones described in this...
3
by: sunny076 | last post by:
Hi, I am trying to convert from Julian to Gregorian data in C#. I was exploring teh JulianCalendar and Gregorian calendar classes but still not sure how I can do it. For example, the Julian date...
2
by: Gidi | last post by:
Hi, I'm writing a C# win application program, and i need to transfer my hebrew letters from unicode to ascii, now if i use the ascii encoding it writes me ??? instead of the hebrew letter i've...
1
by: h_ghanaty | last post by:
how i can convert gregorian date to jalaly(Iran date) with vb.net
3
by: Chris Davoli | last post by:
Is there a class that converts from Gregorian date to TRUE Julian Date in ..NET? Any VB.NET examples available? ie; The Julian date is calculated by the number of days since January 1, 4713 BC....
1
by: Sam | last post by:
How do I convert Julian Date to Calendar Date in ASP.Net 1.1 based on following guideline found at Internet? To convert Julian date to Gregorian date: double JD = 2299160.5; double Z =...
14
by: pdavis06 | last post by:
I know that there is a thread about this, but I was unable to add to it; I just joined. The problem is that I do not want to change the date format for the entire database output, merely for a header...
3
by: nisse2562 | last post by:
this code: http://pastebin.com/f168570c8 gives the compile error: test_templates.cpp: In function 'int main(int, char**)': test_templates.cpp:51: error: expected `(' before 'g'...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.