Our Knowledge Base covers a wide variety of technical topics, from the basic to the complex.
Home / QIN / Knowledge Base / How do I write a formula for a text field that displays a Date field and a Time of Day field?
Knowledge Base
How do I write a formula for a text field that displays a Date field and a Time of Day field?
Let's assume the Date field is called "My Date" and that the Time of Day field is called "My Time of Day". Let's also assume that you want the display format to be:
08-17-2001 01:01:01
Then the text formula to display the date and the timestamp fields together in one cell would be:
[My Date] & " " &
Right("0" & Hour([My Time of Day]), 2)
& ":" &
Right("0" & Minute([My Time of Day]), 2)
& ":" &
Right("0" & Second([My Time of Day]), 2)
- 40234 reads
Rate This
Similar Articles
Browse by Category
Knowledge Base Categories
- Accounts (35)
- Application (45)
- E-Mail (7)
- Fields (41)
- Forms (20)
- Formulas (18)
- General (68)
- Other Product (7)
- Pages (1)
- Product (5)
- Reports (15)
- Roles (4)
- Search (1)
- Tables (6)
Formula Category
about_http_API
access
add
API
APIs
application
applications
automatically
billing
buttons
change
copy
email
error
exact form
excel
export
field
fields
form
formula
formulas
formula URL
http_api
IP
issues
limit
limits
page
password
patches
plan
QuickBase
records
Release Notes
release notes
remove
report
reports
SDK
security
September 30
software
space
status
techfest
user
users
video
view



Comments
Time input format
How do I build a time input format / syntax in a form? I want the field to make it easy for the users to input times and AM/PM.
Time of Day
Hi Bill --
There is a field type called Time of Day -- if you create a field with that type and add it to your form, people who use your app will be able to enter times in 12- or 24-hour format (for example: 3:40 p.m. or 15:40). Hope this helps,
Regards,
--Sybil
Post new comment