Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

datetime

DateTime.Parse(“2012-09-30T23:00:00.0000000Z”) always converts to DateTimeKind.Local

September 2, 2022 by Magenaut

I want to parse a string that represent a DateTime in UTC format.

Categories ASP.NET, Q&A Tags .net, asp.net, c#, datetime, utc Leave a comment

Any difference between DateTime.Parse and Convert.ToDateTime?

September 2, 2022 by Magenaut

Is there any difference between

Categories ASP.NET, Q&A Tags asp.net, c#, datetime Leave a comment

Javascript serialization of DateTime in asp.net is not giving a javascript date object?

September 2, 2022 by Magenaut

When I parse a DateTime to json in .Net it returns a string (i.e. "/Date(1249335194272)/"). How do I make it return a js Date object constructor not wrap in a string?

Categories ASP.NET, Q&A Tags asp.net, c#, datetime, javascript, serialization Leave a comment

Convert string to datetime Using C#

September 1, 2022 by Magenaut

How can i convert String like 20100102 into datetime in a formate of dd/MM/yyyy?

Categories ASP.NET, Q&A Tags asp.net, c#, datetime, string Leave a comment

Datetime format Issue: String was not recognized as a valid DateTime

September 1, 2022 by Magenaut

I want to format the input string into MM/dd/yyyy hh:mm:ss format in C#.
The input string is in format MM/dd/yyyy hh:mm:ss
For example :"04/30/2013 23:00"

Categories ASP.NET, Q&A Tags asp.net, c#, datetime Leave a comment

A Real Timespan Object With .Years & .Months

August 31, 2022 by Magenaut

Consider the following 2 scenarios: Scenario 1). Today is May 1st 2012, and Scenario 2). Today is September 1st 2012.

Categories ASP.NET, Q&A Tags asp.net, c#, datetime, timespan, vb.net Leave a comment

DateTime.Now and Culture/Timezone specific

August 31, 2022 by Magenaut

Our application was designed to handle user from different Geographic location.

Categories ASP.NET, Q&A Tags asp.net, c#, datetime, nodatime, timezone Leave a comment

DateTime.TryParse issue with dates of yyyy-dd-MM format

August 31, 2022 by Magenaut

I have the following date in string format “2011-29-01 12:00 am” . Now I am trying to convert that to datetime format with the following code:

Categories ASP.NET, Q&A Tags asp.net, c#, date, datetime, tryparse Leave a comment

DateTime.Now.DayOfWeek.ToString() with CultureInfo

August 31, 2022 by Magenaut

I have the code:

Categories ASP.NET, Q&A Tags asp.net, c#, cultureinfo, datetime Leave a comment

Convert Date from 6/05/2020 format to dd/MM/YYYY format

August 30, 2022 by Magenaut

I am facing a small issue which i am not able after trying so many things so here it goes ….. There is a text box in my page in which i am entering date and i want that date in a datetime object.

Categories ASP.NET, Q&A Tags asp.net, c#, datetime, datetime-format Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page20 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress