Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get long date from user supplied date
#1
Hey, I've been busting my brain trying to figure out how to create a long date format from a user supplied date... for example...

str UserDate = "8-3-2022"

str RetDate = ConvertToLong(UserDate)

;; RetDate would return "Wednesday, August 3rd, 2022"

Just a simple little subroutine would be all I'm trying to do.  Any suggestions?
#2
Code:
Copy      Help
str UserDate = "8-3-2022"
UserDate.timeformat("{DD}")
out UserDate
#3
Macro Macro3214
Code:
Copy      Help
str UserDate = "8-3-2022"
DateTime k.FromStr(UserDate)
str RetDate = k.ToStrFormat("{DD}")
out RetDate
#4
Thank you so much... couldn't figure out for the life of me!


Forum Jump:


Users browsing this thread: 1 Guest(s)