Right way to utilize string operation on long date.

I have a long date that I have converted to a text. Now I want to use the string operations tile to cut off the tail so I can have a nice clean date. the way it looks now in a string format is:


2022-02-24T12:08:34

What I want is:

2022-02-24


What I have been trying is:


But it leaving the date unchanged and that timestamp at the end is still there.


Thx

Comments

  • Make sure when you are looking in the preview that you are looking for the new column you just created "Rent Last Changed". Don't look at dRentLastChanged as that will not be altered.

    Also, if your dRentLastChanged is a datetime or timestamp field, you could use a formula tile and just do this DATE(dRentLastChanged). This will make it a date only field.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • Billobi
    Billobi Contributor

    Did Mark's method get you taken care of? Changing the type should do it (either with Formula tile, or Alter Columns tile and change the datatype) but here's another method you could use...

    Before:


    Replace Text:


    Results after:


  • oh goodness... defo use @MarkSnodgrass method. it's easier to read and stores the data as type DATE which will have more flexibility in cards than type TEXT

    Jae Wilson
    Check out my 🎥 Domo Training YouTube Channel 👨‍💻

    **Say "Thanks" by clicking the ❤️ in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"