Red Gate forums :: View topic - Date Token for Snippets
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt Previous Versions
SQL Prompt Previous Versions forum

Date Token for Snippets

Search in SQL Prompt Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
dsutherland



Joined: 24 Nov 2010
Posts: 2

PostPosted: Wed Nov 24, 2010 6:37 pm    Post subject: Date Token for Snippets Reply with quote

Is there a special token to use to insert today's date when a snippet is executed, similar to the $CURSOR$ token?
Back to top
View user's profile Send private message
Anu Deshpande



Joined: 20 Apr 2009
Posts: 689
Location: Cambridge

PostPosted: Fri Nov 26, 2010 10:59 am    Post subject: Reply with quote

Many thanks for your post.

Yes you can use $DATE$ for today's date.

Let me know if this solves the purpose.
_________________
Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
dsutherland



Joined: 24 Nov 2010
Posts: 2

PostPosted: Mon Nov 29, 2010 3:53 pm    Post subject: Reply with quote

Thanks, works perfectly.
Back to top
View user's profile Send private message
jkolpa



Joined: 13 Jul 2011
Posts: 1

PostPosted: Wed Jul 13, 2011 8:54 pm    Post subject: Reply with quote

Is there any way to format the style of date as the default is dd/mm/yyyy and our standard is dd-mmm-yyyy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
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