Deprecated: Creation of dynamic property connection::$connection is deprecated in /home/rajanmah/public_html/classes/connection.class.php on line 22 Deprecated: Creation of dynamic property category::$TABLE is deprecated in /home/rajanmah/public_html/classes/category.class.php on line 8 Deprecated: Creation of dynamic property category::$PRIMARY_ID is deprecated in /home/rajanmah/public_html/classes/category.class.php on line 10 Deprecated: Creation of dynamic property clicks::$TABLE is deprecated in /home/rajanmah/public_html/classes/clicks.class.php on line 8 Deprecated: Creation of dynamic property clicks::$PRIMARY_ID is deprecated in /home/rajanmah/public_html/classes/clicks.class.php on line 10 Deprecated: Creation of dynamic property article::$TABLE is deprecated in /home/rajanmah/public_html/classes/article.class.php on line 8 Deprecated: Creation of dynamic property article::$PRIMARY_ID is deprecated in /home/rajanmah/public_html/classes/article.class.php on line 10 Deprecated: Creation of dynamic property technology::$TABLE is deprecated in /home/rajanmah/public_html/classes/technology.class.php on line 8 Deprecated: Creation of dynamic property technology::$PRIMARY_ID is deprecated in /home/rajanmah/public_html/classes/technology.class.php on line 10 Deprecated: Creation of dynamic property works::$TABLE is deprecated in /home/rajanmah/public_html/classes/works.class.php on line 8 Deprecated: Creation of dynamic property works::$PRIMARY_ID is deprecated in /home/rajanmah/public_html/classes/works.class.php on line 10 Deprecated: Creation of dynamic property videos::$TABLE is deprecated in /home/rajanmah/public_html/classes/videos.class.php on line 8 Deprecated: Creation of dynamic property videos::$PRIMARY_ID is deprecated in /home/rajanmah/public_html/classes/videos.class.php on line 10 Date-converter - Rajan Maharjan, Software Programmer, RPA/Application Automation Developer, Database Engineer in Banking Industry

Loading...
३ बैशाख, २०८३ (बिहीबार)

DOCUMENTATION for API

You can also get the converted date to your website just with the help of API

  1. API to get TODAY's NEPALI Date (output: वि.सं २०७४ श्रावन ८, आइतबार)
    • http://rajanmaharjan.com.np/getdate/
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=np
  2. API to get TODAY's English Date (output: 23 July 2017, Sunday)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=en
  3. API to get TODAY's NEPALI day or year or month or date (To display date as per your customization)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=np&dformat=day (output: आइतबार)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=np&dformat=yyyy (output: २०७४)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=np&dformat=mon (output: श्रावन)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=np&dformat=dd (outout: )
  4. API to get TODAY's ENGLISH day or year or month or date (To display date as per your customization)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=en&dformat=day (output:Sunday)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=en&dformat=yyyy (output: 2017)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=en&dformat=mon (output: Jul)
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=en&dformat=dd (outout:23)
  5. API to convert nepali to english date
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=e2n&date=22-07-2017
  6. API to convert english to nepali date
    • http://rajanmaharjan.com.np/getdate/get-json.php?dateType=e2n&date=22-07-2017

Allowed Values:

  1. dateType
    • np - to get nepali dates
    • en - to get english date
    • e2n - to convert from english to nepali
    • n2e - to convert from nepali to english
  2. dformat
    • yyyy - year in 4 character
    • mon - month in 3 character for english (e.g: JAN, FEB, MAR, DEC etc) For Nepali full month is displayed
    • dd - date in 2 character
    • day - day (Snday to Saturday)
    • adbs - A.D or B.S
  3. date
    • should be in format of dd-mm-yyyy
    • e.g: 02-07-2015 (english)
    • e.g: 31-05-2074 (nepali)
For more details please visit my blog

Deprecated: Creation of dynamic property videos::$sql is deprecated in /home/rajanmah/public_html/classes/common.class.php on line 247 Deprecated: Creation of dynamic property works::$sql is deprecated in /home/rajanmah/public_html/classes/common.class.php on line 247 Deprecated: Creation of dynamic property technology::$sql is deprecated in /home/rajanmah/public_html/classes/common.class.php on line 247 Deprecated: Creation of dynamic property article::$sql is deprecated in /home/rajanmah/public_html/classes/common.class.php on line 247 Deprecated: Creation of dynamic property clicks::$sql is deprecated in /home/rajanmah/public_html/classes/common.class.php on line 247 Deprecated: Creation of dynamic property category::$sql is deprecated in /home/rajanmah/public_html/classes/common.class.php on line 247