Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7668233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:18:38+00:00 2026-05-31T15:18:38+00:00

code sample require_once ‘excel/PHPExcel.php’; require_once ‘excel/PHPExcel/Cell/AdvancedValueBinder.php’; PHPExcel_Cell::setValueBinder( new PHPExcel_Cell_AdvancedValueBinder() ); $objPHPExcel->setActiveSheetIndex(0) ->setCellValue(‘A1′, ’12/08/2010’) ->setCellValue(‘A2’,

  • 0

code sample

require_once 'excel/PHPExcel.php';
require_once 'excel/PHPExcel/Cell/AdvancedValueBinder.php';

PHPExcel_Cell::setValueBinder( new PHPExcel_Cell_AdvancedValueBinder() );
$objPHPExcel->setActiveSheetIndex(0)
                                ->setCellValue('A1', '12/08/2010')
                                ->setCellValue('A2', '14/12/2013');

Why is that that value binder doesn’t recognize that it’s a date? Therefore Excel handles the data as string so no sorting 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:18:40+00:00Added an answer on May 31, 2026 at 3:18 pm

    This problem related to the PHPExcel_Shared_Date::stringToExcel() method failing to recognise strings containing / as potentially being valid dates…. an issue that was resolved in version 1.7.5.

    The default date format mask for the AdvancedValueBinder is ‘yyyy-mm-dd’. You’re not limited to the formats listed in PHPExcel_Style_NumberFormat; but you can then set the format to anything that is accepted by Excel. so:

    $objPHPExcel->getActiveSheetIndex()
                ->getStyle('A1')
                ->getNumberFormat()->setFormatCode('dd-mm-yyyy');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sample Code: Config.php: class Config { public $serverIP = 1.1.1.10; } DB.php: require_once /home/mysite/PHP/Config.php;
I'm trying to use jquery with a simple php code: $('#some').click(function() { <?php require_once('some1.php?name=some'
I am a newbie to PHP development. I tried following code sample from PHP5
I've been reviewing a sample code to learn PHP and what I saw made
Here's a sample file structure: page.php db.php folder1/subpage.php folder2/fn.php page.php require_once('folder2/fn.php'); folder1/subpage.php require_once('../folder2/fn.php'); folder2/fn.php
I am using CKEditor with PHP. Using the sample PHP where the $code variable
I am getting the following error while running the code, Warning: require_once(product.php) [function.require-once]: failed
I'm reading this code sample : And since I don't know C#, I decided
Consider the code sample: let foo x = x let bar f = printf
I have a small code sample: private void MonitorItems() { if (someCondition) { dateSelected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.