Divide the date into three fields year, Month, day

Hi friends,

I have in my schedule the date has already been entered
In another table I will add a reference field to get the date from the first table as in this formula:
[schedule].[date]

Required:
How do I get the date of the year in a separate field
And the date of the month in a separate field
Today's date is in a separate field

Solved Solved
0 6 155
2 ACCEPTED SOLUTIONS

You can use split function with index 

split([date],"/")

 

https://support.google.com/appsheet/answer/10107984?hl=en

View solution in original post

  1.  Create a VC with name Split Text and expression split([schedule].[date],"/")
  2. Create an other column with name year and expression INDEX([Split Text], 3) 

This will get you the third value of your date which is the year.

View solution in original post

6 REPLIES 6

You can use split function with index 

split([date],"/")

 

https://support.google.com/appsheet/answer/10107984?hl=en

Thanks @abood89 @SkrOYC 

Thanks
split expression worked fine
He separated the date of the day, month and year
in this form
split([schedule].[date],"/")
It was shown in this form

alfakeah_0-1654254069045.png

Is there an addition to delete the day and month
And keep the year?

  1.  Create a VC with name Split Text and expression split([schedule].[date],"/")
  2. Create an other column with name year and expression INDEX([Split Text], 3) 

This will get you the third value of your date which is the year.

Very nice
It works fine

We don't need a VC   

to thank @abood89 

Glad it worked โ˜บ๏ธ

Top Labels in this Space