Converts the value of the current DateTime object to its equivalent string representation.
Convierte el valor del objeto DateTime actual de la representación de cadena equivalente.
It returns a DateTime object with the current date.
You can create a DateTime object in one of the following ways
Puede crear un objeto DateTime en una de las siguientes maneras
By assigning the DateTime object a date and time value returned by a property or method.
Al asignar un objeto DateTime un valor de fecha y hora que devuelve una propiedad o método.
mutable DateTime object that you want to convert to an immutable version.
El objeto DateTime mutable para convertirlo en una versión mutable.
To see the properties and methods of the DateTime object, type: "get-date | get-member".
Para ver los métodos y propiedades del objeto DateTime, escriba: "get-date | get-member".
5.2.2 DateTime object comparison with the comparison operators changed to work as expected.
La comparación de un objeto DateTime con los operadores de comparación se cambió para que funcionara correctamente.
Returns a DateTime object otherwise.
De lo contrario, devuelve un objeto DateTime.
Returns new DateTime object.
Devuelve un nuevo objeto DateTime.
The second command shows that the default display from the ToString() method of the DateTime object is in short-date and short-time format.
El segundo comando muestra que el formato de presentación predeterminado del método ToString() del objeto DateTime es el formato de fecha corta y hora corta.
Funcția Using the Unix timestamp format to construct a new DateTime object is an alternative when using PHP 5.2, as shown in the example below.
Utilizar el formato de marca temporal de Unix para construir un nuevo objeto DateTime es una alternativa al emplear PHP 5.2, como se muestra en el ejemplo de abajo.
Enter a string that represents the date and time, such as "3/15/09" or a DateTime object, such as one from a Get-Date command.
Escriba una cadena que representa la fecha y la hora, como "3/15/09" o un objeto DateTime, como el de un comando Get-Date.
Type a quoted string, such as "This data is for internal use only", or specify an object that contains content, such as the DateTime object that Get-Date generates.
Escriba una cadena entre comillas, como "Estos datos solo son para uso interno", o especifique un objeto que incluya dicho contenido, como el objeto DateTime que el cmdlet Get-Date genera.