logo
down
shadow

Convert Bangla date to standard English date


Convert Bangla date to standard English date

By : user2956453
Date : November 22 2020, 10:56 AM
This might help you I need to convert Bangla Date to standard English date format. My bangle date : , You can use the following step :
code :
<?PHP
    $banglaDate = '৩১ ডিসেম্বর, ২০১৪ ইং ১০:৫৭ মিঃ';

    $search_array= array("১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০", "জানুয়ারী", "ফেব্রুয়ারী", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগষ্ট", "সেপ্টেম্বার", "অক্টোবার", "নভেম্বার", "ডিসেম্বার", ":", ",");

    $replace_array= array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ":", ","); 

    // convert all bangle char to English char 
    $en_number = str_replace($search_array, $replace_array, $banglaDate);   

    // remove unwanted char       
    $end_date =  preg_replace('/[^A-Za-z0-9:\-]/', ' ', $en_number);

    // convert date
    $bangla_date = date("Y-m-d H:i ", strtotime($end_date));

   // output : 2014-12-31 10:57
?>


Share : facebook icon twitter icon
What's the best way to convert a date in the form yyyy-mm-dd to a date using English month names?

What's the best way to convert a date in the form yyyy-mm-dd to a date using English month names?


By : Bonan
Date : March 29 2020, 07:55 AM
I wish this help you You have to parse it in the existing format, and output the new. There is an output %B that represents the full month. Example:
code :
import datetime
s = '2018-05-20'
dt = datetime.datetime.strptime(s, '%Y-%m-%d')
print dt.strftime('%B %d, %Y')
$ python test.py 
May 20, 2018
Convert French date string to English date for comparison

Convert French date string to English date for comparison


By : Preethi
Date : March 29 2020, 07:55 AM
This might help you The best solution I could come up with when the overall site architecture can't be changed was to create an associate array to map French strings back into English for strtotime() to understand:
code :
var monthMap = {
  'janvier' => 'january',
  ...
}
Convert Nepali date to english date using postgresql

Convert Nepali date to english date using postgresql


By : Michael Toth
Date : March 29 2020, 07:55 AM
I hope this helps you . SQLFiddle
1) Import list of nepali years and length of each month (I copied data from here). In first column there is nepali year and in other columns there is length of each month in days (second column in table is length of first month in every year).
Convert Persian date to standard English date

Convert Persian date to standard English date


By : bsmith
Date : March 29 2020, 07:55 AM
wish of those help You can use either DateTime.TryParseExact method with providing the date format to it with culture info about persian date.
How to convert Japanese date into English date format?

How to convert Japanese date into English date format?


By : Bibiana
Date : March 29 2020, 07:55 AM
I hope this helps you . I set Japanese date using Locale (e.g. 21 11月 2016) in my android app. But, I want to send that date into "dd-MM-yyyy" (e.g. 21-11-2016) format to my APIs. , You need two formatters as below
Related Posts Related Posts :
  • how to run wordpress php snippet mysql update command from ssh and/ultimately cron
  • how to get xml tag by name
  • ModSecurity maximum post limits (PCRE limit errors)
  • Call controller/action in event listener
  • How to improve performance of contacting WebService?
  • PHP nest variable in echoed string that contains a HTML tag in the end
  • Multiple Ajax request for PHP framework
  • Debug Info from Moodle Plugin
  • passing variables through page
  • Passing PHP $result data to Javascript
  • cakePHP File Download was not found or not readable
  • batch waiting until script finishes
  • PHP variables and anchors in URL
  • php eTag generation using php
  • How to check whether the array is an Integer or Not?
  • Is it possible to install Doctrine without PEAR or Composer? If so, how?
  • Call view script of (parent) Abstract controller Zend
  • Curl PHP cannot display amazon
  • Symfony, getters and setters vs magic methods
  • Using 'continue' PHP instruction outside the loop
  • AJAX POST return data not appearing
  • Can I query relations using an INNER JOIN instead of two queries in Eloquent?
  • Looping through dynamic form fields and inserting into database
  • My php code can't select mysql auto_increment value
  • Store Angularjs form data in database using php
  • I want to run my sh file continuously even if I close my Putty connection
  • file_get_contents equivalent for gzipped files
  • Include PHP file with jQuery
  • php curl headers do not return from website?
  • How to find out, if facebook ID is a user, group or page
  • Connect webhost database to android database
  • preg_match get div content with class
  • Upload multiple files in Laravel 4
  • Count array numbers in multidimensional array
  • PHP Date diff with a difference
  • Search Customer by custom field in Netsuite
  • Is it possible to hide/encode/encrypt php source code and let others have the system?
  • list items to be displayed using php code and array
  • check if row exists mysqli
  • PHP errors loading MySQL
  • setup PostgreSQL with Laravel in MAMP
  • PHP - CodeIgniter Notifications
  • Encrypting a password column in a SQL database
  • New to PHP, trying to extract information from another website
  • JavaScript AmChart to Image for Email
  • Is javascript validation enough to keep my forms secure?
  • Regex extract variables from [shortcode]
  • Download a .mp3 link and save it to computer with PHP
  • Error with the ereg_replace
  • Getting the fields attached to a bundle of an entity in Drupal
  • Php how to check multiple times (within `foreach`) if values from array exists in mysql?
  • MySQL and PHP parsing strange string
  • Pull specific data from multidimensional associative array
  • How to get the original URI extension using PHP Tonic?
  • Upload videos and images from Android to PHP server?
  • Unset a multidimensional array with another multidimensional array with values than key
  • Calling a user e-mail to add to a mailto link PHP
  • Why is override_function coming back as an undefined function
  • PHP mySQLi_fetch_all: iterate through each row
  • Using pow in php
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org