Specifying Dates in Shorthand

 

Instead of using {@LONGDATE} or {@SHORTDATE} you can also use the {@INPUTTCL} command to display relative dates in your Shorthand code.

 

Here is the Shorthand code to display yesterday's date in "month day, year" format:

 

{@INPUTTCL

clock format [clock scan "yesterday"] -format "%B %d, %Y" }

 

Just cut and paste the above two lines to your Shorthand long form.

 

The code to print today's date in "month day, year" format is:

 

{@INPUTTCL

clock format [clock scan "today"] -format "%B %d, %Y" }

 

2 days ago in "month day, year"  format  would be:

 

{@INPUTTCL

clock format [clock scan "2 days ago"] -format "%B %d, %Y" }

 

3 weeks from now in "month day, year"  format would be:

 

{@INPUTTCL

clock format [clock scan "next 3 weeks"] -format "%B %d, %Y" }

 


 

To output dates in the "month/day/year" format:

 

The code to print yesterday's date in "month/day/year" format is:

 

{@INPUTTCL

clock format [clock scan "yesterday"] -format "%m/%d/%Y" }

 

The code to print today's date in "month/day/year" format is:

 

{@INPUTTCL

clock format [clock scan "today"] -format "%m/%d/%Y" }

 

2 days ago in "month/day/year" format would be:

 

{@INPUTTCL

clock format [clock scan "2 days ago"] -format "%m/%d/%Y" }

 

3 weeks from now in "month/day/year" format would be:

 

{@INPUTTCL

clock format [clock scan "next 3 weeks"] -format "%m/%d/%Y" }

 

 

 


 

Author: OfficeSoft LLC   http://pcshorthand.com

Created on October 21, 2010 using Google Docs

Last Updated on October 21, 2010