Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Datum -> Formular -> Access

Empfohlene Antworten

Hi,

ich habe ein Formular erstellt in dem ich ein Datum eingebe: 12-31-2001 mit hilfe von CFML und SQL (INSERT INTO...)wird das Datum in die DB eingefügt. Dort steht dann aber nicht 12-31-2001 bzw. 31.12.2001 sonder 08.07.1894 ???

Wer weiss warum?

Hmm hast du ein Format mitgegeben?

Hi Eva,

danke, deine Anregung war sehr gut, - ich Pappnase ;-)

O.K. so geht es mit CFML:

<!--- formatiert das Datum in eines, daß von Access "richtig" interprtiert wird!--->

<cfset setlocale("German (standard)")>

<cfset von=createodbcdate(lsparsedatetime(von))>

<cfset bis=createodbcdate(lsparsedatetime(bis))>

<!--- Speichert das Datum in die DB--->

<cfquery name="x" datasource="db">

INSERT INTO Zeitraum (von, bis)

VALUES (#von#, #bis#)

</cfquery>

Und ich wollte das arne M$Access wieder verfluchen...

poste doch mal deinen SQL-string...

Hi Naberius,

>poste doch mal deinen SQL-string...

Hier ist er nocheinmal:

INSERT INTO Zeitraum (von, bis)

VALUES (#von#, #bis#)

Aber es funktioniert doch auch schon. Trotzdem Danke :-)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.