English to Nepali Date Converter – Online Tool to Convert Dates Quickly
Powered by © Nepali date converter
Got Problem in Converting Dates
How to convert English Date to Nepali date using the above online tool?
step 1: Select date in English(AD) from the right tab [Convert AD to BS tab].
Step 2:select the date by using drop down options.
Step3:click on convert option and you will get your date converted:
After clicking convert button you will see converted date in window like this:
You can convert Nepali date to English i.e BS to AD in similar way.
About this English to Nepali Date Converter
This English to Nepali date convert
is not my own tool.The date converter tool is provided by www.ashesh.com.np
.I have used the embedded code provided by this website.My tool for converting English date to Nepali or Nepali to English is under development.I am trying to develop tool a little bit advance in converting date .
How this Online English to Nepali Date Converter tool works?
The difference between the English Georgian date (AD) and BS is 56 years 8 months and 17 Days. So the date converting tool simply subtracts 56 years 8 months and 17 days for converting Nepali date to English
date and adds 56 years 8 months and 17 days to convert English date to Nepali
Difference between AD and BS :
The difference between AD and BS is 56 years 8 months and 17 Days
About Date conversion technique
While talking about the converting date this is actually incorrect because the tool doesn’t work that way.If you will directly subtract the years to years months to months and days to days then the date converted form BS to AD
will not be correct.
The general formula used to convert Nepali date to English date:
The general formal used in the tool to convert dates from BS to AD is mentioned below.
Year in AD=Year in BS-56
Month in AD=Month in BS-8
Day in AD=Day in BS-17
For simple example:
While converting the date 2076/07/28 if you directly subtracted years to years month to month and day to day we will get 2020/-1/11 which is completely incorrect. The actual converted date 2019/11/14.Well, this is not a great logic anyone with basic knowledge of mathematics can simply figure this out.But while writing the program that converts English date to Nepali or Nepali date to English it is a bit difficult if you are not familiar to programming language.
#C program to Convert English date to Nepali
- The basic concept of C programming,
- Input-output functions,
- Conditional statements (If / else).
Explanation of the program
The logic is simple the first if statement checks whether the day in BS is greater than 17 or not if it is then it will simply subtract 17 from the given day.
Otherwise else statement will execute and it will take 30 days from the month and will add it days of the given date and then it will subtract 17 and here the day part of the date from BS will get converted to AD and also it will subtract 1 month from month part of date.
Now the second if else statement will check weather the month part is greater than the 8 or not.If month part is greater than 8 then it will simply subtract 8.
Or if the if statement becomes false then else statement will be executed and if will take 1 year from year part and will convert it to the month and will add to the month part and will subtract total from 8 month.
Also else statement will subtract 1 year from year part.
So finally our d
The logic is simple the first if statement
checks whether the day in BS is greater than 17 or not if it is then it
will simply subtract 17 from the given day.
ate is successfully converted into the Nepali date from English and it will print in output screen by printf() statement.
Though the online date converter tool is not mine own developed but i am working on it and i am trying to make it a bit of advance then the other tools available in the internet.
Hi i am Amit Pant student of Computer Engineering (BCT) at Thapathali campus ,Thapathali Kathmandu.
Hope you liked if and if you have any questions or anything regarding tool or something else you can comment down below or you fill contact us form.