473,385 Members | 1,720 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,385 software developers and data experts.

Convert Date to Hindu Calendar

KalariaNitya
Hello All,

I want to convert Date to Hindu Calender. For e.g. today is 12th sep'2008 so convert it to bhadarvo sud baras.

can anybody help me how to do that?

thanking u in advanced..
Sep 12 '08 #1
17 30933
Hello All,

I want to convert Date to Hindu Calender. For e.g. today is 12th sep'2008 so convert it to bhadarvo sud baras.

can anybody help me how to do that?

thanking u in advanced..
Sep 12 '08 #2
Nepomuk
3,112 Expert 2GB
can anybody help me how to do that?
Without knowing which language you're using, no we can't. Also, have you done anything yet? If so, please show us, what you've done. Or are you asking for the correct classes / libraries / methods to use?

Greetings,
Nepomuk
Sep 12 '08 #3
cloud255
427 Expert 256MB
Hi there,

Not everyone at this forum knows or understands the way in which calendars of different cultures work. If you could explain the relationship between the standard Gregorian Calendar date (which is 12 September today) and the Hindu calender, we could try to create some algorithm to help you...
Sep 12 '08 #4
thanks to reply me.

right now i am doing r&d on it..

if you have any idea then may i know that which libraries we can use?

i am using asp.net.

thanking u in advanced..

Without knowing which language you're using, no we can't. Also, have you done anything yet? If so, please show us, what you've done. Or are you asking for the correct classes / libraries / methods to use?

Greetings,
Nepomuk
Sep 12 '08 #5
thanks to reply me..

for example today's date is 12th sep'2008. and according to Vikram samvat
today is Bhadrapada Suklapaksha Dvadasï(Baras)

one reference link for it is: http://hindunet.org/hindu_calendar/

i have one confusion that if according to Vikram samvat any thithi is missing then how can we calculate correct tithi for next dates..

could u please help me?

thanking u in advanced.



Hi there,

Not everyone at this forum knows or understands the way in which calendars of different cultures work. If you could explain the relationship between the standard Gregorian Calendar date (which is 12 September today) and the Hindu calender, we could try to create some algorithm to help you...
Sep 12 '08 #6
cloud255
427 Expert 256MB
for example today's date is 12th sep'2008. and according to Vikram samvat
today is Bhadrapada Suklapaksha Dvadasï(Baras)

one reference link for it is: http://hindunet.org/hindu_calendar/
If i understand that site correctly, the calendar has 12 months with 364 days... This is a bit of a problem as every year you loose 1-2 days on the Gregorian year.

One solution i suppose is to look at the DateTime class and perform some calculations to get the month. This thing of the Lunar days i dont understand, how does it work if there are only 15 lunar days but a 30/31 day month? Do days repeat?

If they do, you then need to use the systems date time from some point for which you know the date, then work from that point, i would look for a date where both new years are on the same day and always calculate time lapse as a division of 364 to the number of days since the reference date. This way you could find the month and day of the month by looking int the remainder from the division. You need to note that for four months the division of the remainder must be 31 for the rest by 30 to get to the month and then this remainder will provide you with the day in that month. A modulus function will prove quite handy.

as far as the days of the week are concerned: This is just a simple switch on the DateTime.Now.DayOfWeek value.
Sep 12 '08 #7
Nepomuk
3,112 Expert 2GB
thanks to reply me.

right now i am doing r&d on it..

if you have any idea then may i know that which libraries we can use?

i am using asp.net.

thanking u in advanced..
Well, I don't know any ASP.NET, but I'll have this thread moved to the .NET Forum, where the experts will surely help you.

Greetings,
Nepomuk
Sep 12 '08 #8
Stang02GT
1,208 Expert 1GB
Moved to ASP.NET fourm
Sep 12 '08 #9
DrBunchman
979 Expert 512MB
Nope that was the ASP Forum..I've moved it on to .NET :-)

Dr B
Sep 12 '08 #10
Ok..do u have any idea how to do that?
Nope that was the ASP Forum..I've moved it on to .NET :-)

Dr B
Sep 12 '08 #11
Frinavale
9,735 Expert Mod 8TB
You are going to have to create your own date conversion algorithm to solve your problem. This is not provided to you automatically by .NET.

Your problem is not so much an implementation question as it is a question on understanding how the Hindu Calender relates to the Gregorian calendar.

See post #7.
Cloud255 has made a great suggestion on where to start while creating this conversion algorithm.

The experts on this forum are here to help you with any technical difficulties you experience with coding (implementing) your application. We do not have the expertise to help you understand the Hindu Calender and how it converts to the Gregorian calendar. Please research this topic and have a full grasp of your business logic required to do this conversion before attempting to code anything. Once you begin your implementation, feel free to ask us any questions that you have with concerns to the technicalities of coding; but do not assume that the experts here have any knowledge on how the Hindu Calendar works.


-Moderator Frinny
Sep 12 '08 #12
there is no any algorithm for this..
we have to develop it by riligious calender..
thanks for all ur supports..

it has been recently done..

thanks

You are going to have to create your own date conversion algorithm to solve your problem. This is not provided to you automatically by .NET.

Your problem is not so much an implementation question as it is a question on understanding how the Hindu Calender relates to the Gregorian calendar.

See post #7.
Cloud255 has made a great suggestion on where to start while creating this conversion algorithm.

The experts on this forum are here to help you with any technical difficulties you experience with coding (implementing) your application. We do not have the expertise to help you understand the Hindu Calender and how it converts to the Gregorian calendar. Please research this topic and have a full grasp of your business logic required to do this conversion before attempting to code anything. Once you begin your implementation, feel free to ask us any questions that you have with concerns to the technicalities of coding; but do not assume that the experts here have any knowledge on how the Hindu Calendar works.


-Moderator Frinny
Oct 6 '08 #13
joedeene
583 512MB
Did you accomplish what you were attempting? If not, then i'd recommend using a database and getting the standard date(gregorian, i believe), and looking in the database to translate it, but you'd have to set your database to have all the hindu dates...

joedeene
Oct 7 '08 #14
There appears to be no straight formula that I know for converting from Gregorain (or Christian dates) to Hindu Calender because Hindu Calender is based on the Lunar month of 2 periods of 15 days: new Moon to Full Moon and Full Moon to New Moon. That is 360 days ina years. Instead of a day added every 4 years for the quarter extra day in the 365 day Solar Year, Hindu Calender adds a whole month to rectify the discrepancy. Also as the moon rises and sets at different times of the Solar day, two consecutive religious days fall with a "gap" between the two Solar days. I know the Hindu birthdays of my grandparents and am looking for a way to verify the correct Christian date for the record but have been unable to get them!
Oct 6 '10 #15
Pl convert into Christian calendar. Christian Year 1920 and in that year Hindu month Asho Vad 14th (Kali Chaudas). What is exact christian year and date?
Jun 16 '11 #16
@Ramesh Gandhi
1920-Nov-9 Tue|Saka 1842|V.S.1977, Asvina, Krsnapaksa 14, Citra Nakshtra, Bisti Karan, Ayusman Yog
Jul 18 '11 #17
Use .ics file which contains hindu dates of full year. download it save it to ur application and then you will be able to use it...even i am searching for such a type of query.
.net does not have any algorithm to convert the culture dates.
hence you can get an .ics file from various sites read the file programmatically and use it in your application.
Dec 2 '12 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Alicia | last post by:
Yes, but will that skip a week and group by the date for me? I basically wanted something that would do a count of the dates, then group them by their week name.. BEFORE: Resource Date ...
1
by: Islam Elkhayat | last post by:
In my C# Webapplication.. I enter the date in a textbox using popup Calender in the format MM/dd/yyyy.. when i retrieve date from Sql server for updating using datarow to fill the textbox the...
1
by: Mike | last post by:
I allow the use select a date from a calender control and I want to format the date. I have this: Session = Format("calender.selectedDate, "dd/yyyy"); and i'm getting an error on Format when...
0
by: vinodrapeswal | last post by:
Hindu religion is the most ancient religion of the world. It show us path to truth, bravery & peace. U should also know about this great religion. So, you should study Gita, the respected holy book...
1
by: hnpatel | last post by:
hi friends, How to get date in textbox from calender in vb.net? i want to get selected date in textbox onclick of calender. plz help me... thanx in advance...
1
by: vp.softverm | last post by:
hi all . Am facing problem with the date picker. when i click on date picker in a popup window. the date table is opened in the middle of the pop up window. and it is unable to scroll with...
2
by: haridharmajan | last post by:
I Need to add multiple date into a field using calender each date is to be separated by comma ie when I click on the show month it must display calender and when I click on a date it must inser it to...
21
Vkas
by: Vkas | last post by:
i had created my own web calender control!!!! it consist 1} text box (it display's the selected date) 2} button (it hide and show the calender control) 3} calender control (use for the selection...
1
by: xtremebass | last post by:
Hello Bytes, i have a calender program which is created by using Javascript. when i execute that program using Internet Explorer,it works properly but when i tried in Mozilla firefox it didnt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.