There are various formats for you to record time, but some of which are stored as text fields or numeric fields. Sometimes it is necessary to parse strings or numeric fields into dates.
Add a TODATE Function or a DATE Function in Formula Column to convert text or numeric fields into time fields.
Sample data: Text Field.zip
1. Click New Subject, and add the data in sample Text Field.xlsx.
2. The fields needed for conversion including 2020/05/22, 2020-05-22, 20200522, and 202005. If the uploaded fields are recognized as other field types, you can manually change them back to text type.
3. Click Formula Column, name it Date Type1, enter formula TODATE(Text Field 1) to convert Text Field 1 into a time field, and click OK.
Similarly, create new columns and enter the formulae TODATE(Text Field 2), TODATE(Text Field 3, "yyyyMMdd"), and TODATE(Text Field 4, "yyyyMM") respectively.
For details about usage of the TODATE function, see TODATE.
Sample data: Numeric Field.zip
The format of the fields being converted is shown below:
20200522
2020
5
1,590,727,781,511
Configure Field Settings for the Y/M/D field first. Convert it to a text field, and then convert it to date type.
Convert the A field to date type.
Sometimes you may save the year, month and day in separate fields. With the DATE function, you can transform multiple fields into one date field. For details about the usage of the DATE function, see DATE.
Take Year and Month fields as an example.
1. Configure Field Settings for fields Year and Month and tick both of the two fields.
2. Click Formula Column, name the field Merge Multiple Dates, and enter formula DATE(Year,Month,22).
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy