Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
GeneralUHOQQK+C39HrP48DhTt Pin
There is always the way to do it, but I don't know11-Dec-07 15:09
There is always the way to do it, but I don't know11-Dec-07 15:09 
GeneralRe: UHOQQK+C39HrP48DhTt Pin
Dave Kreskowiak12-Dec-07 3:44
mveDave Kreskowiak12-Dec-07 3:44 
GeneralResizing the controls Pin
A.Asif11-Dec-07 11:42
A.Asif11-Dec-07 11:42 
GeneralRe: Resizing the controls Pin
Christian Graus11-Dec-07 13:39
protectorChristian Graus11-Dec-07 13:39 
GeneralUniversal Date Time Formatting with C# Pin
polishprogrammer11-Dec-07 9:08
polishprogrammer11-Dec-07 9:08 
GeneralRe: Universal Date Time Formatting with C# Pin
Pete O'Hanlon11-Dec-07 9:38
mvePete O'Hanlon11-Dec-07 9:38 
GeneralRe: Universal Date Time Formatting with C# Pin
polishprogrammer11-Dec-07 11:42
polishprogrammer11-Dec-07 11:42 
GeneralRe: Universal Date Time Formatting with C# Pin
RobScripta12-Dec-07 1:14
professionalRobScripta12-Dec-07 1:14 
Hi, I'm learning C# by lurking the forums, but have much experience in Access. This solution works in Access, and I think it will work in C# but haven't tested yet.

In an Access query you have to enclose the date in # to force american date format.

This is how I do this (In Access)

Function ScriptaUDF(Datum As Date)

ScriptaUDF = "#" & Trim(Str(Month(Datum))) & "/" & Trim(Str(Day(Datum))) & "/" & Trim(Str(Year(Datum))) & "#"

End Function

So whenever I need a date in a query I use:

where (((Table.datefield) = " & ScriptaUDF(Me!Datefield) & "))

I hope this helps
GeneralRe: Universal Date Time Formatting with C# Pin
polishprogrammer12-Dec-07 3:00
polishprogrammer12-Dec-07 3:00 
GeneralRe: Universal Date Time Formatting with C# Pin
polishprogrammer12-Dec-07 3:27
polishprogrammer12-Dec-07 3:27 
GeneralRe: Universal Date Time Formatting with C# Pin
polishprogrammer12-Dec-07 6:25
polishprogrammer12-Dec-07 6:25 
QuestionHow to import the data inside a text file into a database? Pin
josephx2k711-Dec-07 8:49
josephx2k711-Dec-07 8:49 
GeneralRe: How to import the data inside a text file into a database? Pin
Christian Graus11-Dec-07 9:27
protectorChristian Graus11-Dec-07 9:27 
GeneralRe: How to import the data inside a text file into a database? Pin
josephx2k711-Dec-07 10:13
josephx2k711-Dec-07 10:13 
GeneralRe: How to import the data inside a text file into a database? Pin
Christian Graus11-Dec-07 13:46
protectorChristian Graus11-Dec-07 13:46 
QuestionIs it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 8:05
Skippums11-Dec-07 8:05 
GeneralRe: Is it possible to create instance aliases in C#? [modified] Pin
Luc Pattyn11-Dec-07 8:42
sitebuilderLuc Pattyn11-Dec-07 8:42 
GeneralRe: Is it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 9:09
Skippums11-Dec-07 9:09 
QuestionRe: Is it possible to create instance aliases in C#? Pin
Skippums11-Dec-07 9:26
Skippums11-Dec-07 9:26 
GeneralRe: Is it possible to create instance aliases in C#? Pin
Luc Pattyn11-Dec-07 9:48
sitebuilderLuc Pattyn11-Dec-07 9:48 
GeneralFormat code for a decimal number. Pin
dbrenth11-Dec-07 7:37
dbrenth11-Dec-07 7:37 
GeneralRe: Format code for a decimal number. Pin
pmarfleet11-Dec-07 7:54
pmarfleet11-Dec-07 7:54 
QuestionReceiving Connection Error w/ SQL DB File on Remote/Hosting Server Pin
dboy22111-Dec-07 7:17
dboy22111-Dec-07 7:17 
GeneralClasses and references Pin
User 665811-Dec-07 6:42
User 665811-Dec-07 6:42 
GeneralRe: Classes and references Pin
Skippums11-Dec-07 6:59
Skippums11-Dec-07 6:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.