Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date problem

Status
Not open for further replies.

Matta25

Technical User
Jan 6, 2004
82
US
I have this variable:
strfmt Now1 "%02d%02d%02d" Month Day Year
I want the variable to display 030504 but is is coming in as 03052004. any ideas?
thanks.
 
The %02d only specifies a minimum width for the variable, but the specified variable will never be truncated when placed in the field. You can use this command to delete the first two characters of the year from your generated string:

strdelete Now1 4 2

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top