GithubHelp home page GithubHelp logo

datetimeformatterapp's Introduction

DateTime 日期與字串轉換的範例應用程式

此應用程式使用 .NET Core 2.0 進行開發

若要執行此應用程式前請確認環境符合 .NET Core 2.0 執行環境。

簡短說明

此程式碼主要範例為將日期 (DateTime) 輸出成英文月份文字 (String)

2018/01/18 => JUN/18/2018

將英文月份日期文字 (String) 的格式轉換成日期型態 (DateTime)

JUN/18/2018 => 2018/01/18

主控台應用程式輸出內容

"2018-03-22T13:47:33.2506564+08:00"
Parse DateTime to string

format  yyyy/MM/dd HH:mm:ss
out     2018/03/22 13:47:33

format  yyyy/MM/dd
out     2018/03/22

format  yyyy-MM-dd
out     2018-03-22

format  MMM/dd/yyyy
out     Mar/22/2018

Parse string to DateTime

input   2018/03/22 13:47:33
out     "2018-03-22T13:47:33"

input   2018/03/22
out     "2018-03-22T00:00:00"

input   2018-03-22
out     "2018-03-22T00:00:00"

input   Mar/22/2018
out     "2018-03-22T00:00:00"

datetimeformatterapp's People

Contributors

txstudio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.