How to change date format using jquery?

EXCEL - how to prevent excel from changing a date to a number?

  • I want to cell to take a # from cell A1, then say "units as of " and then paste the date in cell B1 all into C1. Each time the date in cell B1 converts to a number. I am using =A1&" units as of "&B1 What am I doing wrong? I have gone to format and made sure it is set to the date. Even if I change the format to general it still stays as a number.

  • Answer:

    Try in C1: =IF(AND(A1<>"",B1<>""),A1& " units as of " & TEXT(B1,"m/d/yyyy"),"") Note: 'Dates' in Excel are numbers. They can be represented differently through the use of formatting, but the underlying value in a cell containing a date is a numeric value.

Chuck at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Program the cell to read as a date

Ruth

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.