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

Change format for editable date and date ranges #1764

Open
1 of 6 tasks
FlorianJacta opened this issue Sep 9, 2024 · 7 comments
Open
1 of 6 tasks

Change format for editable date and date ranges #1764

FlorianJacta opened this issue Sep 9, 2024 · 7 comments
Labels
🖰 GUI Related to GUI ✨New feature 🟩 Priority: Low Low priority and doesn't need to be rushed

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented Sep 9, 2024

Description

The goal would be to answer/extend this need even for editable date. The goal is not for display purposes but to change the order from MM/DD/YYYY to DD/MM/YYYY or more.

Acceptance Criteria

  • Ensure new code is unit tested, and check code coverage is at least 90%.
  • Create related issue in taipy-doc for documentation and Release Notes.
  • Check if a new demo could be provided based on this, or if legacy demos could be benefit from it.
  • Ensure any change is well documented.

Code of Conduct

  • I have checked the existing issues.
  • I am willing to work on this issue (optional)
@FlorianJacta FlorianJacta added 🖰 GUI Related to GUI 🟩 Priority: Low Low priority and doesn't need to be rushed ✨New feature labels Sep 9, 2024
@FredLL-Avaiga
Copy link
Member

works for me (tm)

@FlorianJacta
Copy link
Member Author

What do you mean?

@FredLL-Avaiga
Copy link
Member

I mean I tried it and it works ie you can edit a date with the specified format

@ShootingStarD
Copy link

I mean I tried it and it works ie you can edit a date with the specified format

Could you provide the code and taipy version used?

@ShootingStarD
Copy link

ShootingStarD commented Sep 12, 2024

Here is the code that I tried on Taipy 3.1.1 Taipy GUI 3.1.4

from taipy.gui import builder as tgb
from taipy.gui import Gui
import datetime as dt
date_range = [dt.datetime(2024,1,5), dt.datetime(2024,1,10)]
with tgb.Page() as page:
    tgb.date_range(dates="{date_range}", format="dd-MM-yyyy")
    
Gui(page,).run(debug=True, use_reloader=True, port=5111)

image

@FredLL-Avaiga
Copy link
Member

Tried it on the develop branch (ie 4.0.0)

@ShootingStarD
Copy link

Indeed, sorry I didn't checked the dev version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI ✨New feature 🟩 Priority: Low Low priority and doesn't need to be rushed
Projects
None yet
Development

No branches or pull requests

3 participants