|
-
Jul 7th, 2006, 03:14 PM
#1
Thread Starter
Hyperactive Member
[2.0] date formatting...
DateTime dt = DateTime.Now;
string dt1 = dt.ToShortDateString();
so far my sql statement is at this stage
"SELECT * FROM CMCHOLIDAYS WHERE COUNTRY = 'US' AND HOLIDAYDATE = '07/07/2006'"
I need to convert 07/07/06 which is dt1 variable to '07-Jul-2006' format.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|