473,761 Members | 7,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert date to: dd mon yyyy hh:mi(24h)

Hi,
Is it possible to convert date to
dd mon yyyy hh:mi(24h)

Thanks Totto
Aug 25 '06 #1
5 4840
Big H, not little h flips from 12h to 24h

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Totto" <to**********@l osmail.nowrote in message
news:e0******** ********@TK2MSF TNGP05.phx.gbl. ..
Hi,
Is it possible to convert date to
dd mon yyyy hh:mi(24h)

Thanks Totto


Aug 25 '06 #2
Hi Gregory,
Is that with Convert() ? What I want is to drop the seconds
Thanks Totto

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Big H, not little h flips from 12h to 24h

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Totto" <to**********@l osmail.nowrote in message
news:e0******** ********@TK2MSF TNGP05.phx.gbl. ..
>Hi,
Is it possible to convert date to
dd mon yyyy hh:mi(24h)

Thanks Totto



Aug 25 '06 #3
"Totto" <to**********@l osmail.nowrote in message
news:Op******** ******@TK2MSFTN GP06.phx.gbl...
Is that with Convert() ? What I want is to drop the seconds
<DateTime variable>.ToStr ing("dd MMM yyyy HH:mm");
Aug 25 '06 #4
Ops sorry, I'm in the worng group. The question was for SQL Server. Transact
SQL

Totto
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:e5******** ******@TK2MSFTN GP04.phx.gbl...
"Totto" <to**********@l osmail.nowrote in message
news:Op******** ******@TK2MSFTN GP06.phx.gbl...
>Is that with Convert() ? What I want is to drop the seconds

<DateTime variable>.ToStr ing("dd MMM yyyy HH:mm");

Aug 25 '06 #5
Transact SQL? http://msdn2.microsoft.com/en-us/library/ms187928.aspx

Also in books Online

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Totto" <to**********@l osmail.nowrote in message
news:%2******** *******@TK2MSFT NGP02.phx.gbl.. .
Ops sorry, I'm in the worng group. The question was for SQL Server.
Transact SQL

Totto
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:e5******** ******@TK2MSFTN GP04.phx.gbl...
>"Totto" <to**********@l osmail.nowrote in message
news:Op******* *******@TK2MSFT NGP06.phx.gbl.. .
>>Is that with Convert() ? What I want is to drop the seconds

<DateTime variable>.ToStr ing("dd MMM yyyy HH:mm");


Aug 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5762
by: Ray via SQLMonster.com | last post by:
Hi there, See if you can help me with the following: I need to write an SQL code that will return me: The 1st day & the Last day of the Previous Month in the following format (smalldatetime): yyyy-mm-dd hh:mi:ss (24h)
1
1939
by: andreas2410 | last post by:
im trying to convert my column of data type datetime. this is an example of what the data looks like: 2007-01-24 10:01:29.710 i want to format it as so 200701241001 ive tried this so far i think im sort of on the right track
9
2053
by: chromis | last post by:
Hi, I've never coded in ASP before and I'm trying to port a couple of simple PHP files to ASP.NET. The first file addScores.php takes form data and a hash and inserts the data into the db, it returns error or success depending on the success of the query. This is then used by a third party piece of software. My first problem is how to retrieve the result of an insert query to see if the query is successful or not: PHP Version: //...
3
2376
by: PeeS290 | last post by:
Hi all, Where can I find guidelines about programming SQL based applications in VC++ ? Since MS SQL Server 2008 is strongly promoted, I cannot understand why there is no help for developers. There is so many technologies using SQL, but no clear guidelines which one to use. Last one I tried is ODBC, but I don't know if I should stick to it. How to connect and use SQL database from VC++ program in "MS preferred way"
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.