<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kandennti</author_name>
  <author_url>https://blog.hatena.ne.jp/kandennti/</author_url>
  <blog_title>C#ATIA</blog_title>
  <blog_url>https://kantoku.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>こちらで使った文字を日付として判断するis_date関数の お話です。 Fletのテキストフィールドでのバリデーション2 - C#ATIA必要だったため、もうちょっと改修します。datetime.strptimeメソッドの場合、 '2023-05-22'は日付として変換出来ますが、 '2023/05/22' '2023年05月22日'に関しては日付とはしてくれません。想定している利用方法は 手で入力する事は少ないのですが、手で修正を許しているので これらを許可しないと不便です。その為、関数を修正しました。 def is_date(txt: str) -&gt; bool: try: pattern …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkantoku.hatenablog.com%2Fentry%2F2023%2F05%2F22%2F124252&quot; title=&quot;日付を判断する - C#ATIA&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-22 12:42:52</published>
  <title>日付を判断する</title>
  <type>rich</type>
  <url>https://kantoku.hatenablog.com/entry/2023/05/22/124252</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
