hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

format date for variable ?

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions
View previous topic :: View next topic  
Author Message
wl



Joined: 07 Jun 2007
Posts: 6

PostPosted: Mon Jun 11, 2007 11:55 am    Post subject: format date for variable ? Reply with quote

I have a variable written to a text file with this syntax:
DATE=$%QUERYX::FileDate%$

I would like to format the date like this:
2007-06-11-08.12.34.000000

rather than this:
Mon Jun 11 14:14:00 CDT 2007

How can that be done ?
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Jun 11, 2007 3:22 pm    Post subject: Reply with quote

Does this file date variable have a corresponding file path or file path variable?
if yes, you can use the nested variables as shown in this article:
http://www.hiteksoftware.com/phpBB2/viewtopic.php?t=1087
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group