DATETIME Process?

db , sql server India
  • 13 years ago

    how can i store date format in SQL server in the format of "dd-MMM-yyyy"

  • 13 years ago

    Basically, you can't (to my knowledge). DateTime or SmallDateTime are "types" in Sql Server that hold date time infomation.

    However Smiley Face

    You could create a DateTimeString field in your table (nchar(10)) whereby you could, on setting the datetime field either automatically or manually set the string field accordingly.

    Joe
     

  • 13 years ago

    but is it possible to perform search by date order?

  • 13 years ago

    You mean like:

    where <datetime> between date1 and date2 ?

    Joe 

  • 13 years ago

    EXACTLY joe

  • 13 years ago

     Yip - no problem... as far as I know, most databases can do search functionality wrapped around datetime (type) columns.

    Joe 

  • 13 years ago

    Let me try upon this.......... THANKS JOE

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perl - The only language that looks the same before and after RSA encryption.” - Keith Bostic