Skip to content

Date converter is a java library that converts the date in A.D. to B.S. and vice versa

Notifications You must be signed in to change notification settings

binodsh/date-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Date Converter

Date converter is a java library that converts the date in A.D. to B.S. and vice versa

Usage

Converting A.D to B.S

Date date = new Date();                             //default java Date object
DateBS dateBS = DateConverter.convertADToBS(date);  //returns corresponding DateBS

Converting B.S to A.D

DateBS dateBS = new DateBS();                       //returns current date in B.S
Date date = DateConverter.convertBSToAD(dateBS);    //returns corresponding Date object

Add days in DateBS

DateBS newDateBS = CalendarBS.addXDays(dateBS, daysToAdd)

Download and Install

Download the following jar and put it on your classpath dateconverter.jar

Or add a dependency:

Maven

<dependency>
  <groupId>com.github.binodnme</groupId>
  <artifactId>date-converter</artifactId>
  <version>1.0.1</version>
</dependency>

Gradle

compile 'com.github.binodnme:date-converter:1.0.1'

or find your dependency here maven central

About

Date converter is a java library that converts the date in A.D. to B.S. and vice versa

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages