Time Sort with seconds AM PM in Sharepoint viwe

I created a single line text column to record the time in HH:MM:SS AMPM

But now I need it to sort properly.

It's sorting in numerical order but not in actual chronological order.

so for example (ascending sort order)
4:17:00 pm
9:45:01 am
11:34:56 am

where the 4pm item should be last.




Can I remedy this with a calculated column?
sullisnyc44Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

trax75Commented:
Hi,

you have to create a Date-Column to get this list ordered the right way. Or Change the current column to date.

cu
torsten
0
sullisnyc44Author Commented:
but the date time column is in 5 minute intervals. ???

That's not useful to me. I need HH:MM:SS AMPM. Can I get that from a date time column?

Also I really only need the time (but if I have to use the date AND time then fine).
0
trax75Commented:
Hi,

Datetime saves the date correct with the time (like the created or modified field).

You save already the time in a text column - so the easiest way is to create a calculated field with "=DATEVALUE([My Text])+TIMEVALUE([My Text])" as formula and set the result type to number. You can use this column to order your entries.

cu
Torsten

ps: [My Text] stands for the column name, storing your time values as text.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sullisnyc44Author Commented:
I think I owe you a beer! YOU Sir, are awesome.

Here's my code:
=IF(ISERROR([Line Report Date]+TIMEVALUE([Time DOWN])),"",([Line Report Date]+TIMEVALUE([Time DOWN])))
0
sullisnyc44Author Commented:
awesome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.