Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date Format in Box office Reports #310

Open
anandvenkatanarayanan opened this issue Nov 30, 2019 · 0 comments
Open

Date Format in Box office Reports #310

anandvenkatanarayanan opened this issue Nov 30, 2019 · 0 comments

Comments

@anandvenkatanarayanan
Copy link

anandvenkatanarayanan commented Nov 30, 2019

Box office reports produce a CSV in which the Purchase Date appears as "May 31, 2019 at 10:43:00 PM". This is problematic for excel analysis because the standard date fields supported by excel. The complete list of these formats are

# Examples date and time formats.
date_formats = (
    'dd/mm/yy',
    'mm/dd/yy',
    'dd m yy',
    'd mm yy',
    'd mmm yy',
    'd mmmm yy',
    'd mmmm yyy',
    'd mmmm yyyy',
    'dd/mm/yy hh:mm',
    'dd/mm/yy hh:mm:ss',
    'dd/mm/yy hh:mm:ss.000',
    'hh:mm',
    'hh:mm:ss',
    'hh:mm:ss.000',
)

The current format is not convertible to any of these formats without writing custom excel code first to convert date fields and hence impedes analysis. Since both analysis requires date, time and day of week, the reports should contain three columns "Date" and "Time", "Day of Week", with the following formats "dd/mm/yyyy", "hh:mm", "Monday/Tuesday..."

Having these fields separately allows separate feature analysis of both date, time and week day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant