I have a virtual column that i need to give me the date (date only) for the date the form was completed. If I use Today() it will always be the current date correct? So what is the correct way to do this?
I have a timestamp column (DateTime). Is it possible to make the virtual column equal the timestamp column but converted to date only?
Solved! Go to Solution.
DATE([TimestampColumn])
DATE([TimestampColumn])
Works perfectly. Thank you very much!
Is there way i timestamp can return a date only without needing a virtual column?
Iโm not sure I understand your question.
To generate a DateTime timestamp, use NOW().
To generate a Date timestamp, use TODAY().
To generate a Time timestamp, use TIMENOW().
To convert a DateTime value to a Date, use DATE().
See also:
Appologies for being a bit unclear.
I am using a ChangeTimestamp column type for column [Task Complete Date] where [Task Status] = โTask Completeโ
I was hoping to only return date format and not datetime format without using another virtual column to do so.
I donโt believe thatโs possible.
Added a virtual column: โDate Display Removedโ, in the formula I put if(ISBLANK([Display Removed]),โActiveโ,DATE([Display Removed])). Iโve designated the type of my VC to be Text, because if I use Date, it wonโt show it.
Display Removed column is type Date, however it contains โActiveโ by default until the user adds the date using an Action.
The VC is still showing the time even though the Display Removed column is of Type Date and the actual value in the cell is just a date mm/dd/yyyy format.
In the expression above, the column name is [Display Removed] In the picture shared, there are columns by name [Date Display Installed] and [Date Display Removed]
Could you please mention, if [Display Removed] a third column or same as [Date Display Removed]
โDisplay Removedโ column is the real column in the table. The value in the column is either โActiveโ by default or a date that is updated using an action. Itโs type is Date.
โDate Display Removedโ is a virtual column Iโve added trying to show just the date of the โDisplay Removedโ column using the formula above.
If I donโt need the VC to just show the Date of the โDisplay Removedโ column, Iโm good with that. But because it has โActiveโ as a value and is type Date, it wonโt display correctly.
I believe the column type be text rather than date because the word"Active" is text type. So IF() has one argument of TEXT type and another DATE() type.
You could make the VC of text type and try the following expression
IF(ISBLANK([Display Removed]),โActiveโ, TEXT([Display Removed], โMM/DD/YYYYโ))
Or even below expression
IF(ISBLANK([Display Removed]), โActiveโ, TEXT([Display Removed]))
If you are using that VC in date calculations again, you could type cast it with date again such as DATE([Date Display Removed])
User | Count |
---|---|
43 | |
28 | |
24 | |
24 | |
13 |