如果今天的条件天气日期是1,如何查询日期? [英] How to check date in if condition weather today date is 1 ?

查看:57
本文介绍了如果今天的条件天气日期是1,如何查询日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家







我有问题。我想在今天条件天气检查,如果它是这个月的第1个月或者不能如何实现它请帮助我

解决方案

试试这个

  if (DateTime.Now.Day ==  1 
{
/// day is 1
}


Hi Experts



i Have problem . i want to check in if condition weather today it is date 1st of the month or not how can i achieve it please help me

解决方案

try this

if(DateTime.Now.Day==1)
{
///day is 1
}


这篇关于如果今天的条件天气日期是1,如何查询日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆