Gibt es eine Möglichkeit, den gleichen Wert von Datum Zeit in Javascript, dass c#
DateTime.MaxValue
zurückgibt?C# DateTime.MaxValue Entsprechung in Javascript
0
A
Antwort
1
Nun, ja. Das maximale Datum in .NET ist 23:59:59.9999999 UTC, December 31, 9999
. So würde dies das Äquivalent Javascript sein:
var d = new Date(9999, 12, 31, 23, 59, 59, 9999999);
Es gibt keine Date.MaxValue
in Javascript ist, so müssen Sie es Ihre eigenen.
+0
Möglicherweise müssen Sie für [einige Rand Fälle] (http://imgur.com/LglCmOd) –
+0
Tatsächlich stimmt das: S @JamesThorpe –
Verwandte Themen
- 1. nhibernate, postgresql und datetime.maxvalue
- 2. Hat typescript/javascript ein @ "\" Entsprechung wie C#?
- 3. VB.NET FormatNumber Entsprechung in C#?
- 4. C++ Entsprechung von java.lang.Integer.MIN_VALUE
- 5. Javascript-Entsprechung von php's strtotime()?
- 6. getElementById Entsprechung in Actionscript?
- 7. C# Entsprechung von Numpy Wo
- 8. Linkbutton Entsprechung in MVC C# Razor
- 9. Schreiben einer IsDate() Entsprechung in C#?
- 10. Wie ein Datetime Wert DateTime.MaxValue setzen
- 11. Javascript interaktives Debugging (Entsprechung von Python pdb.set_trace())
- 12. Sprintf-Entsprechung in Java
- 13. Gibt es eine Entsprechung in C für C++ - Vorlagen?
- 14. Hat C# eine Entsprechung zu #pragma pack in C++?
- 15. C#: Gibt es eine JTable-Entsprechung?
- 16. F # Entsprechung von SortedDictionary aus C#
- 17. C# Entsprechung von Java PushbackReader ungelesen()
- 18. Internet Explorer Entsprechung für das Laden einer Textdatei in Javascript
- 19. Wie finde ich die .data() (jQuery) Entsprechung in JavaScript?
- 20. Hat IsEmpty von VBScript eine Entsprechung in JavaScript?
- 21. Gibt es eine Entsprechung für var_dump (PHP) in Javascript?
- 22. madSHI MadExcept Entsprechung für .NET (C#)
- 23. Gibt es eine Ruby-Entsprechung für JavaScript Function.prototype.bind?
- 24. Entsprechendes Entsprechung in Postgres
- 25. GM_addStyle Entsprechung in TamperMonkey
- 26. Entsprechung in ActionScript 3
- 27. IAuthenticationFilter Entsprechung in MVC6
- 28. Wie Unicode-Zeichen in seine Escaped Ascii-Entsprechung in C#
- 29. Entsprechung von remove_if in D
- 30. Entsprechung von remove_if in D
Dies kann Ihnen möglicherweise helfen: http://StackOverflow.com/Questions/11526504/Minimum-and-Maximum-Date – henrikmerlander