1.TODAY£º»ñÈ¡µ±ÌìµÄÈÕÆÚ
Óï·¨£º=TODAY()
Õâ¸öº¯ÊýûÓвÎÊý£¬Ö±½ÓʹÓü´¿É£¬Ëü»ñÈ¡µÄÊǵçÄÔÖнñÌìµÄÈÕÆÚ£¬ÏëҪȷ±£½ñÌìµÄÈÕÆÚÊÇÕýÈ·µÄ£¬¾Í±ØÐëÒª±£Ö¤µçÄÔÖеÄÈÕÆÚÊÇÕýÈ·µÄ
2.NOWº¯Êý£º»ñÈ¡µ±Ç°Ê±¿Ì
Óï·¨£º=NOW()
ËüÒ²ÊÇûÓвÎÊýµÄ£¬Ö±½ÓʹÓü´¿É£¬Nowº¯Êý»ñÈ¡µÄÊǵçÄÔÖе±Ç°µÄÄêÔÂÈÕʱ·ÖÃ룬Óëtodayº¯ÊýÒ»Ñù£¬ÏëҪȷ±£ÕýÈ·ÐÔ£¬¾Í±ØÐë±£Ö¤µçÄÔÖеÄʱ¼äÓëÈÕÆÚ¶¼ÊÇÕýÈ·µÄ
3.DATEº¯Êý£º¹¹½¨Ò»¸öÈÕÆÚ
Óï·¨£ºdate=£¨Äê·Ý£¬Ô·ݣ¬ÌìÊý£©
ËüµÄ×÷ÓÃÊǹ¹½¨Ò»¸öÖ¸¶¨µÄÈÕÆÚ£¬¾³£ÓÃÓÚ¹¹½¨Ò»´®ÈÕÆڵĿªÊ¼£¬´ïµ½¶¯Ì¬¹¹½¨Ò»¶Îʱ¼äµÄЧ¹û
4.DAYº¯Êý£ºÌáÈ¡ÌìÊý
Óï·¨£º=DAY£¨ÈÕÆÚ£©
ËüµÄ×÷ÓþÍÊǽ«ÈÕÆÚÖеÄÌìÊýÌáÈ¡³öÀ´
5. MONTHº¯Êý£ºÌáÈ¡Ô·Ý
Óï·¨£º=month(ÈÕÆÚ)
ËüµÄ×÷ÓþÍÊǽ«ÈÕÆÚÖеÄÔ·ÝÌáÈ¡³öÀ´
6.YEARº¯Êý£ºÌáÈ¡Äê·Ý
Óï·¨£º=YEAR£¨ÈÕÆÚ£©
ËüµÄ×÷ÓþÍÊǽ«ÈÕÆÚÖеÄÄê·ÝÌáÈ¡³öÀ´
7.WEEKDAYº¯Êý£º»ñÈ¡ÈÕÆÚ¶ÔÓ¦µÄÐÇÆÚÊý
Óï·¨£º=weekday£¨ÈÕÆÚ£¬²ÎÊýÀàÐÍ£©
µÚ¶þ²ÎÊýÊÇÓÃÓÚÖ¸¶¨½«Öܼ¸×÷ΪÿһÖܵĿªÊ¼£¬Ò»°ã½«ÆäÉèÖÃΪ2£¬¾Í±íʾ½«ÖÜÒ»ÉèÖÃΪÿÖܵĿªÊ¼£¬ÕâÑùµÄÖÜÒ»¾Í»á¶ÔÓ¦Êý×Ö1
С±àÍƼö£º Å×ÎïÏ߶¥µã×ø±ê¹«Ê½ÊÇʲô£¨·ÖÏí³õÖÐÊýѧ¹«Ê½Ö®¶þ´Îº¯Êý¶¥µã×ø±ê¹«Ê½£©¿ªÂú¶¡Ï㻨µÄУ԰д×÷·½·¨£¨·ÖÏíÁùÄ꼶ÉϲáËĵ¥ÔªÏ°×÷¿ªÂú¶¡Ï㻨µÄУ԰£©±È½Ï¼¶×î¸ß¼¶ÔõÑù±æ±ð£¨·ÖÏí×î¸ß¼¶µÄ6ÖÖ±íʾ·½·¨£©