---
title: "判断某一日期是星期几。"
author: "沉睡的鱼"
date: "2012-04-11T15:40:17Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2012-04-11T15:40:17Z"
id: 1483386
url: "https://ruixin.iteye.com/blog/1483386"
---

public static String getStringDayOfWeek(Date date) {   
                String result = "";   
                if (null != date) {   
                    SimpleDateFormat formatter4 = new SimpleDateFormat("E");   
                   result = formatter4.format(date);   
              }   
               return result;   
           }   