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.

Aktuellen Timestamp

Empfohlene Antworten

Veröffentlicht

Hallo Zusammen,

ich habe gerade angefangen ASP zu programmieren und jetzt stehe ich vor einem Problem.

Kann mir jemand sagen, wie ich hier beim Dateinname das wirkliche Datum und die wirklich Uhrzeit bekomme, also einen Timestamp?

<%

	Option Explicit


	Response.Buffer = True


	Dim EntityBody

	Dim Stream

	Dim OutDirectory

    Dim Dateiname

    Dim PartnerId

	Dim DocumentType


	PartnerId = Request.QueryString("PartnerId")

	DocumentType = Request.QueryString("DocumentType")


	'Hier wird das Verzeichnis angegeben, in das die Datei abgelegt werden soll.

	'Auf dem Verzeichnis muss aber ASP Schreibrechte haben.

	OutDirectory = "C:\Test_Curl\From\"


	'Hier wird der Zieldateiname angegeben

	'Dateiname = "From.xml"


	Dateiname = DocumentType&"DatumZeit"&".xml"



	EntityBody = Request.BinaryRead (Request.TotalBytes)


	Set Stream = Server.CreateObject("AdoDB.Stream")

	Stream.Type = 1						

	stream.Open

	Stream.Write EntityBody

	Stream.Position = 0


	Stream.SaveToFile OutDirectory & Dateiname


	Response.Status = "202 Accepted"

	Response.End

%>

Danke

leider funktionieren die beiden Funktionen nicht, ok Date funktioniert schon. Aber leider nicht wie ich das will. Mein Datum soll wie folgt aussehen "200501311700" Datum 31.01.2005 Zeit 17:00 Uhr

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.