I have a date field in which times are captured and stored some of the time. I am trying to figure out how to display the date in an HTML block in a dynamic way that displays time if present and not if empty.
Please consider:
Date1: 01/06/2015
Date2: 01/07/2015 17:45:00
Desired display:
Date1: Jan 6th, 2015
Date2: Jan 7th, 2015 5:45PM
Actual display
Date1: Jan 6th, 2015 12:00AM
Date2: Jan 7th, 2015 5:45PM
When time is not captured it is not relevant and thus shouldn't be displayed.
I have a workaround that involves a calculated field, but it's pretty clunky.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
LWSChad
Hello All!!
I have a date field in which times are captured and stored some of the time. I am trying to figure out how to display the date in an HTML block in a dynamic way that displays time if present and not if empty.
Please consider:
Date1: 01/06/2015
Date2: 01/07/2015 17:45:00
Desired display:
Date1: Jan 6th, 2015
Date2: Jan 7th, 2015 5:45PM
Actual display
Date1: Jan 6th, 2015 12:00AM
Date2: Jan 7th, 2015 5:45PM
When time is not captured it is not relevant and thus shouldn't be displayed.
I have a workaround that involves a calculated field, but it's pretty clunky.
Any ideas?
Thanks
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.