Latest 1.0.1
License MIT
Platforms ios 9.0

Nepali Date Converter

NepaliDateConverter is a Date Conversion library for converting Nepali Date to English & vice versa written in Swift.


Using Cocoapod:

  1. Add following in your Podfile
pod 'NepaliDateConverter'
  1. Install the pod by typing pod install in your terminal
  2. After installation, add import NepaliDateConverter on top of your file wherever you want to use this library

Manual Installation:


  1. DateConverter.swit
  2. NepaliDateTranslator.swift

files present in NepaliDateConverter/Core location to your project.


This library is written for the purpose of converting Nepali date to English & vice versa. You can also use this library to translate Date Components to its Nepali Counterparts.
Date (Nepali or English) in this library is represented as a struct named DateModel. DateModel contains three properties: year, month & day.

Unit tests for most of the methods are written and can be found at NepaliDateConverterTests/NepaliDateConverterTests.swift file.

How to use

1. Date Conversion:

let converter = DateConverter()

Nepali date to English Conversion
Result is DateModel containing english date i.e 1993-07-01

let nepDate1 = DateModel(year: 2050, month: 03, day: 17)
let engDate1 = converter.getEnglishDate(nepaliDate: nepDate1) 

English to Nepali Conversion
Result is DateModel containing Nepali Date i.e 2075-12-27

let engDate1 = DateModel(year: 2019, month: 04, day: 10)
let nepDate1 = converter.getNepaliDate(englishDate: engDate1)

2. Nepali Translation

You can use this feature of the library to translate date, month, year to its Nepali Counterpart.

let translator = NepaliDateTranslator()

let firstMonth = translator.getMonth(month: 1) // बैशाख
let thirteen = translator.getNumber(number: 13) // १३
let wednesday = translator.getDay(day: 4) // बुध


If you want to contribute to this project, You can always create a PR against dev branch.


The MIT License (MIT)

Please see the LICENSE file for more information.

Latest podspec

    "name": "NepaliDateConverter",
    "version": "1.0.1",
    "summary": "Nepali to English & vice versa date conversion library in Swift",
    "description": "A date conversion library written in swift to convert Nepali date to English & vice versa.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Nishan": "[email protected]"
    "platforms": {
        "ios": "9.0"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "source_files": "NepaliDateConverter/Core/*.swift"

Pin It on Pinterest

Share This