Code: Select all
put "Jan 1,Feb 2,Mar 3,Apr 4,May 5,Jun 6,Jul 7,Aug 8,Sep 9,Oct 10,Nov 11,Dec 12" into months
split months by comma and space
put months["Jan"]
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
put "Jan 1,Feb 2,Mar 3,Apr 4,May 5,Jun 6,Jul 7,Aug 8,Sep 9,Oct 10,Nov 11,Dec 12" into months
split months by comma and space
put months["Jan"]
Code: Select all
convert "Jul 12, 2020" to short date
put it
--returns 7/12/20
-> Jul 12, 2020MichaelBluejay wrote: ↑Wed Jan 06, 2021 6:50 amI was trying to roll my own to convert dates like "Jul 12, 2020" to "7/12/20" because according to the dictionary, "Jul 12, 2020" is not one of the formats that LC can convert to or from, but trying it just now...
Code: Select all
convert "Jul 12, 2020" from abbr date to short date