datebs
Version:
library to convert date from BS to AD and vice versa.
38 lines (24 loc) • 775 B
Markdown
# DateBS
A javascript library that assists you in converting date from BS to AD and vice versa.
## Google Sheet AddIn
The addons expose following custom function so that date from BS to AD and vice versa.
- DateToBS(datestring)
- DateToAD(datestring)
## Google App Script Library
ProjectId: M5OVnOjNBAA2Sopb3F1-gozX8b41Gj_r8
Go to Resources > Libraries and add the above library using the above project id.
## DateAPI
You can use our dateapi to convert the date from BS to AD and vice versa.
### Examples
#### Get todays date in BS
```bash
curl -L https://bit.ly/dateapi
```
#### Convert date from BS to AD
```bash
curl -L https://bit.ly/dateapi?dateBS=2077-03-01
```
#### Convert date from AD to BS
```bash
curl -L https://bit.ly/dateapi?dateAD=2020-01-03
```