I have a calculation field that I am using to get a date that is a week before an input date field in the app. I've included my calculation below. I would like the display only the date and not the time in this field. Normally when I do a date calculation I would just use .format to make it look the way I need to, but in this case I need it to be an actual date field and not a text field, so format won't work here. Thanks!
moment(@First Date & Time).tz('America/New_York').subtract('days', 7).toDate()
Please sign in to leave a comment.