Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums 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: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 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: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 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