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

  • SEARCH
  • Home
  • 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 731535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:02:16+00:00 2026-05-14T07:02:16+00:00

Python and Matlab quite often have integer date representations as follows: 733828.0 733829.0 733832.0

  • 0

Python and Matlab quite often have integer date representations as follows:

733828.0
733829.0
733832.0
733833.0
733834.0
733835.0
733836.0
733839.0
733840.0
733841.0

These numbers correspond to some dates this year. Do you know which function can convert them back to YYYYMMDD format?

  • 1 1 Answer
  • 3 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-14T07:02:16+00:00Added an answer on May 14, 2026 at 7:02 am

    The datetime.datetime class can help you here. The following works, if those values are treated as integer days (you don’t specify what they are).

    >>> from datetime import datetime
    >>> dt = datetime.fromordinal(733828)
    >>> dt
    datetime.datetime(2010, 2, 25, 0, 0)
    >>> dt.strftime('%Y%m%d')
    '20100225'
    

    You show the values as floats, and the above doesn’t take floats. If you can give more detail about what the data is (and where it comes from) it will be possible to give a more complete answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never used Python before, most of my programming has been in MATLAB
I'm new to python, coming from matlab. I have a large sparse matrix saved
I often write codes in MATLAB/Python to test whether my algorithm is feasible (&
Does Python or any of its modules have an equivalent of MATLAB's conv2 function?
I am considering moving from Matlab to Python/numpy for data analysis and numerical simulations.
I'm trying to embed Python into a MATLAB mex function on OS X. I've
Is it possible to read binary MATLAB .mat files in Python? I've seen that
I want to use some Python libraries to replace MATLAB. How could I import
I'm a C and MATLAB user. When I started learning Python (a week ago)
Is it possible to run MATLAB functions from within Python? I search the internet,

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.