Dates in excel are appearing as a single number in Python
up vote
-1
down vote
favorite
For example the date in an Excel cell will read: "11/16/2018 9:20" , however in Python when I print the cell value of the date I get: "43420.38888". I have tried changing the date format in excel but Python reads it the same regardless. How do I get Python to see the date as a string or bytes-like object?
excel string date printing
New contributor
add a comment |
up vote
-1
down vote
favorite
For example the date in an Excel cell will read: "11/16/2018 9:20" , however in Python when I print the cell value of the date I get: "43420.38888". I have tried changing the date format in excel but Python reads it the same regardless. How do I get Python to see the date as a string or bytes-like object?
excel string date printing
New contributor
That is the value, Excel only displays it as a string (which is why you can change the format).
– jonrsharpe
13 mins ago
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
For example the date in an Excel cell will read: "11/16/2018 9:20" , however in Python when I print the cell value of the date I get: "43420.38888". I have tried changing the date format in excel but Python reads it the same regardless. How do I get Python to see the date as a string or bytes-like object?
excel string date printing
New contributor
For example the date in an Excel cell will read: "11/16/2018 9:20" , however in Python when I print the cell value of the date I get: "43420.38888". I have tried changing the date format in excel but Python reads it the same regardless. How do I get Python to see the date as a string or bytes-like object?
excel string date printing
excel string date printing
New contributor
New contributor
New contributor
asked 31 mins ago
Christopher Torres
1
1
New contributor
New contributor
That is the value, Excel only displays it as a string (which is why you can change the format).
– jonrsharpe
13 mins ago
add a comment |
That is the value, Excel only displays it as a string (which is why you can change the format).
– jonrsharpe
13 mins ago
That is the value, Excel only displays it as a string (which is why you can change the format).
– jonrsharpe
13 mins ago
That is the value, Excel only displays it as a string (which is why you can change the format).
– jonrsharpe
13 mins ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Christopher Torres is a new contributor. Be nice, and check out our Code of Conduct.
Christopher Torres is a new contributor. Be nice, and check out our Code of Conduct.
Christopher Torres is a new contributor. Be nice, and check out our Code of Conduct.
Christopher Torres is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349386%2fdates-in-excel-are-appearing-as-a-single-number-in-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
That is the value, Excel only displays it as a string (which is why you can change the format).
– jonrsharpe
13 mins ago