Guardar fecha en la base de datos

Is there any simple idea to create calendar which enable user to select a date and keep it in database?

I'm creating a system, online car rental. So far, everything looks ok, but i get stuck implementing booking date.

preguntado el 30 de julio de 12 a las 17:07

checkout jquery UI calendar / Calendar control in ASP.NET -

2 Respuestas

Why you don't use standart ms sql type datetime?

For calendar control in html, you can use jQuery UI datePicker -

Winforms and WPF has such control in standart library

Respondido 30 Jul 12, 17:07

The .NET framework includes a calendar control for this purpose. It's a combination textbox and Javascript based calendar. (I'm using the 4.0 framework, and there's a calendar control in the standard toolbox)

You should be able to store and set the value based on what's in your database.

There's also an Ajax enabled calendar control if you want to implement the AJAX Control toolkit.

Respondido 30 Jul 12, 17:07

Thanks @Tim. Nice article and very helpful. Thanks again. - Stuck

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.