Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date and time
Message
From
19/02/2014 11:06:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/02/2014 17:41:27
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2008 R2
Application:
Web
Miscellaneous
Thread ID:
01594579
Message ID:
01594666
Views:
47
>>No, the poitn is not force SQL Server to return what you want, bnut to SHOW that DT field in the format you want.
>>
>>DateTime.ToString("dd/MM/yy hh:mm");
>>
>
>I'm missing the difference completely I'm afraid. The date is stored as datetime and i'm showing the format I want.

Showing is the province of the presentation layer, i.e. whatever generates your html. SQL is rather far behind the scenes and shouldn't have to care about formatting.

In that part it's true that you're showing the format you want - it's just that as homo multiplex (or multi-tier) you need to decide which one of yous is in charge of formatting - you presenter or you data cruncher?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform