Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Python
(view source)
Revision as of 10:53, 8 July 2015
198 bytes added
,
10:53, 8 July 2015
→Date
Line 317:
Line 317:
import datetime
import datetime
datetime.date.today().strftime("%B %d, %Y")
datetime.date.today().strftime("%B %d, %Y")
+
</source>
+
=== String date to date type ==
+
<source lang="python">
+
from datetime import datetime
+
fecha_string = '2014-01-15 11:20:05.220'
+
date = datetime.strptime(fecha_string, '%Y-%m-%d %H:%M:%S.%f'
</source>
</source>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version