Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

How to convert string such as "January 25, 2025 9:15 am" to a date?

I am struggling to come up with a solution to convert a timestamp string to a date. The format of the timestamp has the month spelled out as in "January 25, 2025 9:15 am."

Many thanks,

TARA

Best Answer

  • ✭✭✭✭✭
    Answer ✓

    • @tarak if you can't reformat the incoming data (which is the better way to do this).

      1. Find ","
      2. Find " "
      3. month is 11 If then's for month text left of the " "
      4. day column is right of the " "
      5. year is everything to the right of the comma minus the " "

      Recombine into one formula with date(year, month, day)

    Principal Consultant | System Integrations

    Prime Consulting Group

    Email: info@primeconsulting.com

    Follow us on LinkedIn!

Answers

  • ✭✭✭✭✭
    Answer ✓

    • @tarak if you can't reformat the incoming data (which is the better way to do this).

      1. Find ","
      2. Find " "
      3. month is 11 If then's for month text left of the " "
      4. day column is right of the " "
      5. year is everything to the right of the comma minus the " "

      Recombine into one formula with date(year, month, day)

    Principal Consultant | System Integrations

    Prime Consulting Group

    Email: info@primeconsulting.com

    Follow us on LinkedIn!

  • ✭✭

    Thank you. This works. I will look into other options for potentially getting the incoming data formatted, but for now I am able to move forward. Cheers!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions