Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
AM PM format in browse view
-
- Posts: 30
- Joined: Wed Sep 06, 2023 12:45 am
AM PM format in browse view
Is there a way to get the browse view of the time format to show as AM / PM and 1-12? I have it in AM/PM 1-12 in the form view but the browse view defaults to 1-24 (the AM PM does show, but the 1-24 rather than 1-12 is the format that shows). Thanks.
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: AM PM format in browse view
Format the time in the Display column, e.g.
Code: Select all
DATE_FORMAT(time_column, '%h:%i %p')
-
- Posts: 30
- Joined: Wed Sep 06, 2023 12:45 am
Re: AM PM format in browse view
Where should this code be placed? I put it as in the screenshot below but it didn't change the date. Thanks.
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: AM PM format in browse view
DATE_FORMAT() is a MySQL function, not a JavaScript function. Additionally, make sure to replace 'column_name' with the actual name of the column you want to format.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 30
- Joined: Wed Sep 06, 2023 12:45 am