Date converter is a java library that converts the date in A.D. to B.S. and vice versa
Date date = new Date(); //default java Date object
DateBS dateBS = DateConverter.convertADToBS(date); //returns corresponding DateBS
DateBS dateBS = new DateBS(); //returns current date in B.S
Date date = DateConverter.convertBSToAD(dateBS); //returns corresponding Date object
DateBS newDateBS = CalendarBS.addXDays(dateBS, daysToAdd)
Download the following jar and put it on your classpath
dateconverter.jar
Or add a dependency:
<dependency>
<groupId>com.github.binodnme</groupId>
<artifactId>date-converter</artifactId>
<version>1.0.1</version>
</dependency>
compile 'com.github.binodnme:date-converter:1.0.1'
or find your dependency here
maven central